aboutsummaryrefslogtreecommitdiff
path: root/prep/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'prep/Makefile')
-rw-r--r--prep/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/prep/Makefile b/prep/Makefile
new file mode 100644
index 0000000..107fdd6
--- /dev/null
+++ b/prep/Makefile
@@ -0,0 +1,15 @@
+MARKDOWNS = prep.md
+BUILD := build
+
+RUN_PP=pp
+
+prep.pdf: prep.md $(filter-out prep.md,$(MARKDOWNS))
+ pandoc -o $@ $^
+
+$(BUILD)/%.md.d: %.md Makefile | $(BUILD)
+ $(RUN_PP) -M $< < $< > $@
+
+$(BUILD):
+ mkdir $@
+
+-include $(MARKDOWNS:%.md=$(BUILD)/%.md.d)