summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2021-11-16 22:51:24 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2021-11-16 22:51:24 +0100
commitdcb0db194dcad853e07300c44b8359616199c4b5 (patch)
treeeb7e24f5032d7c332852f100fc557e4364477520 /Makefile
parentizboljšal make sistem. potrebno če implementati dokument.tex v make (diff)
downloadsola-gimb-3-dcb0db194dcad853e07300c44b8359616199c4b5.tar
sola-gimb-3-dcb0db194dcad853e07300c44b8359616199c4b5.tar.gz
sola-gimb-3-dcb0db194dcad853e07300c44b8359616199c4b5.tar.bz2
sola-gimb-3-dcb0db194dcad853e07300c44b8359616199c4b5.tar.lz
sola-gimb-3-dcb0db194dcad853e07300c44b8359616199c4b5.tar.xz
sola-gimb-3-dcb0db194dcad853e07300c44b8359616199c4b5.tar.zst
sola-gimb-3-dcb0db194dcad853e07300c44b8359616199c4b5.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b75bf65..8bf8275 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,18 @@
-dirs := $(subst " . "," ",$(subst /Makefile,,$(shell find -name Makefile)))
+dirs := $(subst . , ,$(subst /Makefile,,$(shell find -name Makefile)))
pdfs := $(subst .md,.pdf,$(shell find -name *.md))
+texs := $(subst .tex,.pdf,$(shell find -name dokument.tex))
.PHONY: clean default
-default: $(dirs) $(pdfs)
+default: $(dirs) $(pdfs) $(texs)
$(dirs):
$(MAKE) -C $@
%.pdf: %.md
pandoc -V geometry:margin=1cm $< -o $@
+%.pdf: %.tex
+ @echo za tole rabiš moje magične skripte
+ cd $(subst dokument.pdf,,$@) && ~/projects/doc/f5ff.sh dokument && biber dokument && ~/projects/doc/f5ff.sh dokument
clean:
+ @echo cleaning $(dirs)
for dir in $(dirs); do \
$(MAKE) -C $$dir clean; \
done
- rm -rf $(pdfs)
+ rm -rf $(pdfs) $(texs)