-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 1.43 KB
/
Makefile
File metadata and controls
37 lines (28 loc) · 1.43 KB
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
34
35
36
37
EXTERNAL_REFERENTS = stories judgement
zines += Monsters.pdf
zines += Knacks.pdf
targets += $(TITLE)_cover.pdf
DEPS += images/extracted/cave-0.jpg images/extracted/cave-1.jpg
output += booklets
include config/common.mk
$(DBOOK): qr.tex $(DROSS)/$(BOOK)-switch-gls $(wildcard *.tex)
config/common.mk:
@git submodule update --init
images/extracted/cave-0.jpg images/extracted/cave-1.jpg &: images/Roch_Hercka/cave_fight.jpg | images/extracted/
magick $< -crop 1754x0 images/extracted/cave.jpg
images/extracted/cover.jpg: images/Roch_Hercka/cave_fight.jpg | images/extracted/inclusion.tex
$(CP) $< $@
booklets/a7_Knacks.tex: knacks.tex | booklets/ $(RELEASE)
$(file > $@, $(zineheader) )
@sed -i '/begin{document}/ i \\\setcounter{bookLevel}{3}' $@
\printf '%s\n' '\miniCover{\MakeUppercase $(basename $<)}{}' >> $@
\printf '%s\n' '\cleardoublepage\pagestyle{minizine}' >> $@
sed '1 d;/multicols/d;/footnote/d; s/\\section/\\subsection/; s/footnote/exRef{core}{Core Rules}/' $< >> $@
\printf '%s\n' '\ifnum\thepage<14\clearpage\null\fi' >> $@
\printf '%s\n' '\end{document}' >> $@
booklets/a7_Monsters.tex: whales.tex eyeline.tex | booklets/ $(RELEASE)
$(file > $@, $(zineheader) )
\printf '%s\n' '\miniCover{\MakeUppercase $(basename $<)}{}' >> $@
\printf '%s\n' '\cleardoublepage\pagestyle{minizine}\normalsize' >> $@
sed '/multicols/d;/epigraph{/d;s/\\section/\\subsection/' $^ >> $@
\printf '%s\n' '\clearpage\null\end{document}' >> $@