summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2021-11-15 20:07:00 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2021-11-15 20:07:00 +0100
commitd4ec265fcdc44fbf115d0b4ecb17ae6e708ea3f3 (patch)
tree97bf92adfc989f745886ecc9fe4738532c3473ef /Makefile
parentnemščina. ggllhhff (diff)
downloadsola-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--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)