summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0dfb3ff..b75bf65 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
-dirs := $(subst /Makefile,,$(wildcard */Makefile))
-.PHONY: clean default $(dirs)
-default: $(dirs)
+dirs := $(subst " . "," ",$(subst /Makefile,,$(shell find -name Makefile)))
+pdfs := $(subst .md,.pdf,$(shell find -name *.md))
+.PHONY: clean default
+default: $(dirs) $(pdfs)
$(dirs):
$(MAKE) -C $@
+%.pdf: %.md
+ pandoc -V geometry:margin=1cm $< -o $@
clean:
for dir in $(dirs); do \
$(MAKE) -C $$dir clean; \
done
+ rm -rf $(pdfs)