Debian Codegraph @

texmf-dist/doc/latex/bookshelf/Makefile.doc

raw
1 SAMPLE = spines.tex
2
3 SAMPLEPDF = spines.pdf
4
5 MAINDOC = bookshelf.pdf
6
7 CLS = bookshelf.cls
8
9 PERLSCRIPTS = \
10 ../scripts/bookshelf-listallfonts \
11 ../scripts/bookshelf-mkfontsel
12
13 MAN = $(notdir ${PERLSCRIPTS:%=%.1})
14
15 SCRIPTTEX = $(notdir ${PERLSCRIPTS:%=%.tex})
16
17 SCRIPTPDF = $(notdir ${PERLSCRIPTS:%=%.pdf})
18
19 all: ${MAN} allfonts ${SAMPLEPDF} ${SCRIPTPDF} ${MAINDOC}
20
21 %.1: ../scripts/%
22 pod2man $< > $@
23
24 %.tex: ../scripts/%
25 pod2latex -full $< > $@
26
27 %.pdf: %.tex bookshelf.cls bookshelf-svgnam.tex pickfont.tex bookshelf.bst
28 lualatex $*
29 - bibtex $*
30 lualatex $*
31
32 %.pdf: %.dtx spines.pdf bookshelf.cls
33 xelatex $<
34 - biber $*
35 xelatex $<
36 - makeindex -s gind.ist -o $*.ind $*.idx
37 - makeindex -s gglo.ist -o $*.gls $*.glo
38 xelatex $<
39 while ( grep -q 'rerun LaTeX' $*.log) \
40 do xelatex $<; done
41
42 bookshelf.dtx: ../bookshelf.dtx
43 cp $< $@
44
45 bookshelf.cls: ../bookshelf.cls
46 cp $< $@
47
48 bookshelf.bst: ../bookshelf.bst
49 cp $< $@
50
51
52 %.tex: ../%.tex
53 cp $< $@
54
55 ../bookshelf.cls: ../bookshelf.ins ../bookshelf.dtx
56 cd .. && ${MAKE} bookshelf.cls
57
58 ../bookshelf-svgnam.tex: ../svgnam.sh
59 cd .. && ${MAKE} bookshelf-svgnam.tex
60
61 pickfont.tex: allfonts
62 ../scripts/bookshelf-mkfontsel allfonts
63
64 allfonts:
65 luaotfload-tool --update --force
66 ../scripts/bookshelf-listallfonts > allfonts
67
68 clean:
69 $(RM) *.bst *.cls *.aux *.bbl *.blg *.idx *.toc *.log \
70 *.bcf *.dtx *.dtx *.glo *.gls *.hd *.ilg *.ind *.out \
71 *.xml pickfont.tex ${SCRIPTTEX} bookshelf-svgnam.tex svgnam.csv
72 $(RM) -r fontsel
73
74 distclean: clean
75 $(RM) ${MAN} allfonts ${SAMPLEPDF} ${SCRIPTPDF} ${MAINDOC}