Debian Codegraph @

doc/makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 ifeq ($V,1)
2 silent_stdout=
3 else
4 silent_stdout= > /dev/null
5 endif
6
7 PLATFORM := $(shell uname | sed -e 's/_.*//')
8 ifeq ($(PLATFORM), Darwin)
9 err:
10 $(error Docs can't be built on Mac)
11
12 docs mandvi manual: err
13 endif
14
15 docs: manual
16
17 #LTM user manual
18 mandvi: bn.tex
19 cp bn.tex bn.bak
20 touch --reference=bn.tex bn.bak
21 (printf "%s" "\def\fixedpdfdate{"; date +'D:%Y%m%d%H%M%S%:z' -d @$$(stat --format=%Y bn.tex) | sed "s/:\([0-9][0-9]\)$$/'\1'}/g") > bn-deterministic.tex
22 printf "%s\n" "\pdfinfo{" >> bn-deterministic.tex
23 printf "%s\n" " /CreationDate (\fixedpdfdate)" >> bn-deterministic.tex
24 printf "%s\n}\n" " /ModDate (\fixedpdfdate)" >> bn-deterministic.tex
25 cat bn.tex >> bn-deterministic.tex
26 mv bn-deterministic.tex bn.tex
27 touch --reference=bn.bak bn.tex
28 echo "hello" > bn.ind
29 latex bn ${silent_stdout}
30 latex bn ${silent_stdout}
31 makeindex bn
32 latex bn ${silent_stdout}
33
34 #LTM user manual [pdf]
35 manual: mandvi
36 pdflatex bn >/dev/null
37 sed -b -i 's,^/ID \[.*\]$$,/ID [<0> <0>],g' bn.pdf
38 mv bn.bak bn.tex
39 rm -f bn.aux bn.dvi bn.log bn.idx bn.lof bn.out bn.toc
40
41 clean:
42 rm -f *.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log tommath.tex