-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 904 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 -V theme:boxes -V fonttheme:structurebold -V classoption:aspectratio=169 --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 *.jpg .depend
push:
git push origin master