Skip to content

Commit 8240df4

Browse files
committed
Add tex make target to build pdf/*.tex
1 parent 318708e commit 8240df4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ test: html
3737
@node src/check_links.js
3838
@echo Done.
3939

40-
book.pdf: $(foreach CHAP,$(CHAPTERS),pdf/$(CHAP).tex) pdf/hints.tex pdf/book.tex $(patsubst img/%.svg,img/generated/%.pdf,$(SVGS))
40+
tex: $(foreach CHAP,$(CHAPTERS),pdf/$(CHAP).tex) pdf/hints.tex $(patsubst img/%.svg,img/generated/%.pdf,$(SVGS))
41+
42+
book.pdf: tex pdf/book.tex
4143
cd pdf && sh build.sh book > /dev/null
4244
mv pdf/book.pdf .
4345

4446
pdf/book_mobile.tex: pdf/book.tex
4547
cat pdf/book.tex | sed -e 's/natbib}/natbib}\n\\usepackage[a5paper, left=5mm, right=5mm]{geometry}/' | sed -e 's/setmonofont.Scale=0.8./setmonofont[Scale=0.75]/' > pdf/book_mobile.tex
4648

47-
book_mobile.pdf: $(foreach CHAP,$(CHAPTERS),pdf/$(CHAP).tex) pdf/hints.tex pdf/book_mobile.tex $(patsubst img/%.svg,img/generated/%.pdf,$(SVGS))
49+
book_mobile.pdf: pdf/book_mobile.tex tex
4850
cd pdf && sh build.sh book_mobile > /dev/null
4951
mv pdf/book_mobile.pdf .
5052

0 commit comments

Comments
 (0)