2016-11-05 22:18:25 +02:00
|
|
|
SLIDELEVEL=2
|
|
|
|
|
|
|
|
TARGETS=$(patsubst %.pandoc,%.pdf,$(wildcard *.pandoc)) $(patsubst %.pandoc,%-blog.txt,$(wildcard *.pandoc)) $(patsubst %.pandoc,%.epub,$(wildcard *.pandoc))
|
|
|
|
|
|
|
|
all: depend $(TARGETS)
|
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
|
|
|
.depend: $(wildcard *.pandoc) makedep.sh
|
|
|
|
rm -f .depend
|
|
|
|
./makedep.sh > .depend
|
|
|
|
|
|
|
|
-include .depend
|
|
|
|
|
|
|
|
%.pdf: %.pandoc beamer.my beamercolorthemekrok.sty
|
2016-11-06 10:26:14 +02:00
|
|
|
pandoc --slide-level $(SLIDELEVEL) -t beamer $< -H beamer.my -V theme:boxes -V fonttheme:structurebold -V classoption:aspectratio=169 --latex-engine=pdflatex -o $@
|
2016-11-05 22:18:25 +02:00
|
|
|
|
|
|
|
%.epub: %.pandoc beamer.my beamercolorthemekrok.sty
|
|
|
|
pandoc --slide-level $(SLIDELEVEL) -t epub $< --template beamer.my -V theme:Warsaw -V fonttheme:structurebold -V colortheme:krok -o $@
|
|
|
|
|
|
|
|
%.png: img/%.png
|
|
|
|
./mkimg.sh $@
|
|
|
|
|
|
|
|
%.jpg: img/%.jpg
|
|
|
|
./mkimg.sh $@
|
|
|
|
|
|
|
|
%-blog.txt: %.pandoc
|
|
|
|
php etxt.php $< > $@
|
|
|
|
clean:
|
2016-11-06 09:45:53 +02:00
|
|
|
rm -f $(TARGETS) *.png *.jpg .depend
|
2016-11-05 22:18:25 +02:00
|
|
|
|
|
|
|
push:
|
|
|
|
git push origin master
|