34 lines
825 B
Makefile
34 lines
825 B
Makefile
|
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
|
||
|
pandoc --slide-level $(SLIDELEVEL) -t beamer $< -H beamer.my --latex-engine=pdflatex -o $@
|
||
|
|
||
|
%.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:
|
||
|
rm -f $(TARGETS) *.png .depend
|
||
|
|
||
|
push:
|
||
|
git push origin master
|