diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2021-11-15 20:07:00 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2021-11-15 20:07:00 +0100 |
commit | d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3 (patch) | |
tree | 97bf92adfc989f745886ecc9fe4738532c3473ef /Makefile | |
parent | nemščina. ggllhhff (diff) | |
download | sola-gimb-3-d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3.tar sola-gimb-3-d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3.tar.gz sola-gimb-3-d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3.tar.bz2 sola-gimb-3-d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3.tar.lz sola-gimb-3-d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3.tar.xz sola-gimb-3-d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3.tar.zst sola-gimb-3-d4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3.zip |
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) |