diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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) |