0
|
1 all: manual.pdf
|
|
2
|
|
3 sources: *.tex callconvs/*.tex dyncall_logo.* dyncall_watermark.*
|
|
4
|
|
5 manual.pdf: sources
|
|
6 # run twice for toc on some tex installs
|
70
|
7 cd "${VPATH}" && for i in 1 2; do pdflatex -output-directory="${PWD}" manual.tex; done
|
0
|
8
|
70
|
9 html/manual.html: manual_tex4ht.cfg sources
|
0
|
10 # Create tex4ht.env from default one, but with better bitmaps
|
70
|
11 cd "${VPATH}" && ( \
|
|
12 cp $$(dirname $$(which tex4ht))/../share/texmf-dist/tex4ht/base/unix/tex4ht.env ./custom_tex4ht.env; \
|
|
13 sed -E -i '' 's/(Text|Graphics)(AlphaBits)=[1,2,3]([^0-9])/\1\2=4\3/g' custom_tex4ht.env; \
|
|
14 mkdir -p ./html/; \
|
|
15 htlatex manual.tex manual_tex4ht " -cunihtf -e./custom_tex4ht.env -utf8" -d./html/; \
|
|
16 rm ./html/*.css; \
|
|
17 )
|
|
18
|
|
19 pdf: manual.pdf
|
|
20
|
|
21 html:: html/manual.html
|
0
|
22
|
|
23 clean:
|
|
24 # pdf
|
70
|
25 cd "${VPATH}" && for i in pdf aux lof log lol lot out toc; do rm -f manual.$$i || true; done
|
0
|
26 # html
|
70
|
27 cd "${VPATH}" && ( \
|
|
28 for i in 4ct 4tc css dvi html idv lg tmp xref; do rm -f manual.$$i || true; done; \
|
|
29 for i in manual*x.png manual*.html texput.log manual_*.log zzmanual.eps zzmanual.ps custom_tex4ht.env; do rm -f $$i || true; done; \
|
|
30 rm -r html || true; \
|
|
31 )
|