diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-10-15 12:47:27 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-10-15 12:47:34 +0200 |
commit | 2377f55bace7427b90bc1d3bd22283c726a4d821 (patch) | |
tree | ce035ccb8e2ebe513b4d06d0c8e2f01afb9fb982 | |
parent | 1ffcd223591f8b0ad2d16e1c30f4db89b5c42fff (diff) |
Use descriptive variables for file types and implicit rule for conversion.
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,8 +1,9 @@ -infiles := $(wildcard *.mdwn) +markdown := $(wildcard *.mdwn) +hypertext = $(markdown:%.mdwn=%.html) -all: $(infiles:%.mdwn=%.html) +all: $(hypertext) -$(infiles:%.mdwn=%.html): %.html: %.mdwn +%.html: %.mdwn pandoc -f markdown -t html -o $@ $< clean: |