summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-10-15 12:47:27 +0200
committerJonas Smedegaard <dr@jones.dk>2015-10-15 12:47:34 +0200
commit2377f55bace7427b90bc1d3bd22283c726a4d821 (patch)
treece035ccb8e2ebe513b4d06d0c8e2f01afb9fb982
parent1ffcd223591f8b0ad2d16e1c30f4db89b5c42fff (diff)
Use descriptive variables for file types and implicit rule for conversion.
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1c00929..a4365e7 100644
--- a/Makefile
+++ b/Makefile
@@ -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: