# Makefile for Markdown + Make demonstration

MARKDOWN=markdown

txtFiles = index.txt

all: $(txtFiles:.txt=.html)

clean:
	rm -f $(txtFiles:.txt=.html)

$(txtFiles:.txt=.html): finish.sed metadata.inc header.inc footer.inc

.SUFFIXES: .txt .html

.txt.html:
	$(MARKDOWN) < $< | sed -f finish.sed > $@
