blob: b75bf659bd8340de9e0e0a91666e367c39907e83 (
plain) (
tree)
|
|
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)
|