summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2021-11-20 20:25:59 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2021-11-20 20:25:59 +0100
commitd4422f27c424cce84d8d0a1f40ab65ef07d8376e (patch)
tree697323f08cce47c9e0af8fbe1ec5860605f9cbef /Makefile
parentwas ist dein lieblingsfach, lieblingsfach liebl... (diff)
downloadsola-gimb-3-d4422f27c424cce84d8d0a1f40ab65ef07d8376e.tar
sola-gimb-3-d4422f27c424cce84d8d0a1f40ab65ef07d8376e.tar.gz
sola-gimb-3-d4422f27c424cce84d8d0a1f40ab65ef07d8376e.tar.bz2
sola-gimb-3-d4422f27c424cce84d8d0a1f40ab65ef07d8376e.tar.lz
sola-gimb-3-d4422f27c424cce84d8d0a1f40ab65ef07d8376e.tar.xz
sola-gimb-3-d4422f27c424cce84d8d0a1f40ab65ef07d8376e.tar.zst
sola-gimb-3-d4422f27c424cce84d8d0a1f40ab65ef07d8376e.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8bf8275..c356e47 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
+SHELL := /bin/bash
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))
+texs := $(subst .tex,.pdf,$(shell find -name *.tex))
.PHONY: clean default
default: $(dirs) $(pdfs) $(texs)
$(dirs):
@@ -9,7 +10,7 @@ $(dirs):
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
+ n=`rev <<< $@ | cut -d/ -f1 | cut -d. -f2- | rev` && cd `rev <<< $@ | cut -d/ -f2- | rev` && ~/projects/doc/f5ff.sh $$n && (test -e `rev <<< $@ | cut -d. -f2- | rev`.bib && biber $$n ||:) && ~/projects/doc/f5ff.sh $$n
clean:
@echo cleaning $(dirs)
for dir in $(dirs); do \