The Fugue

Counterpoint by Hans Fugal

Markdown Makefile Idiom

Posted by Hans Fugal Mon, 16 Jun 2008 21:35:09 GMT

I can never remember this, and I use it frequently, so I thought I'd put it here where I can find it faster.

all: $(patsubst %.txt,%.html,$(wildcard *.txt))
%.html: %.txt header.html footer.html
    cat header.html > $@
    markdown $< >> $@
    cat footer.html >> $@

no comments | Tags , , , , | atom

Trackbacks

Use the following link to trackback from your own site:
http://hans.fugal.net/blog/trackbacks?article_id=markdown-makefile-idiom&day=16&month=06&year=2008

Comments

Leave a response

Leave a comment