Debian Codegraph @

texk/web2c/man/Makefile.am

raw
1 ## $Id: Makefile.am 77582 2026-02-03 16:42:45Z karl $
2 ## Makefile.am for the TeX Live subdirectory texk/web2c/man/
3 ##
4 ## Copyright 2015-2025 Karl Berry <[email protected]>
5 ## Copyright 2009-2015 Peter Breitenlohner <[email protected]>
6 ## You may freely use, modify and/or distribute this file.
7 ##
8 man_sources = $(bootstrap_man_sources)
9 EXTRA_DIST = $(bootstrap_man_sources)
10 bootstrap_man_sources = ctie.man cweb.man ctwill.man tangle.man tie.man
11
12 # Symlinks within $(man1dir): FILE:LINK indicates LINK.1->FILE.1
13 man1_links = cweb:ctangle cweb:cweave
14 man1_links += ctwill:ctwill-proofsort ctwill:ctwill-refsort ctwill:ctwill-twinx
15
16 if WEB
17 man_sources += $(web_man_sources)
18 man1_links += twill:twill-refsort
19 endif WEB
20 EXTRA_DIST += $(web_man_sources)
21 web_man_sources = bibtex.man dvicopy.man dvitomp.man dvitype.man gftodvi.man \
22 gftopk.man gftype.man mft.man patgen.man pktogf.man pktype.man \
23 pltotf.man pooltype.man tftopl.man twill.man \
24 vftovp.man vptovf.man weave.man
25
26 if TEX
27 man_sources += tex.man
28 man1_links += tex:initex
29 endif TEX
30 EXTRA_DIST += tex.man
31
32 if MF
33 man_sources += mf.man
34 man1_links += mf:inimf
35 if MFN
36 man1_links += mf:mf-nowin
37 endif MFN
38 endif MF
39 EXTRA_DIST += mf.man
40
41 if MP
42 man_sources += mpost.man
43 endif MP
44 EXTRA_DIST += mpost.man
45
46 if ETEX
47 man_sources += etex.man
48 endif ETEX
49 EXTRA_DIST += etex.man
50
51 if PDFTEX
52 man_sources += $(pdftex_man_sources)
53 man1_links += pdftex:pdflatex
54 endif PDFTEX
55 pdftex_man_sources = pdftex.man pdftosrc.man ttf2afm.man
56 EXTRA_DIST += $(pdftex_man_sources)
57
58 if EUPTEX
59 man_sources += ptex.man
60 man1_links += ptex:eptex ptex:euptex ptex:uptex
61 man_sources += ppltotf.man ptftopl.man
62 man1_links += ppltotf:uppltotf ptftopl:uptftopl
63 man_sources += pbibtex.man
64 man1_links += pbibtex:upbibtex
65 endif EUPTEX
66 EXTRA_DIST += ptex.man ppltotf.man ptftopl.man pbibtex.man
67
68 if LUATEX
69 man_sources += luatex.man
70 man1_links += luatex:texlua luatex:texluac \
71 luatex:luahbtex luatex:luajittex \
72 luatex:dviluatex
73 endif LUATEX
74 EXTRA_DIST += luatex.man
75
76 if XETEX
77 man_sources += xetex.man
78 endif XETEX
79 EXTRA_DIST += xetex.man
80
81 if OTANGLE
82 man_sources += $(otangle_man_sources)
83 man1_links += dvicopy:odvicopy dvitype:odvitype tangle:otangle
84 endif OTANGLE
85 EXTRA_DIST += $(otangle_man_sources)
86 otangle_man_sources = ofm2opl.man opl2ofm.man ovf2ovp.man ovp2ovf.man
87
88 if ALEPH
89 man_sources += aleph.man
90 endif ALEPH
91 EXTRA_DIST += aleph.man
92
93 man_sources += $(misc_man_sources)
94 EXTRA_DIST += $(misc_man_sources)
95 misc_man_sources = \
96 amstex.man \
97 latex.man \
98 latex-dev.man
99
100 man1_links += latex-dev:pdflatex-dev \
101 latex-dev:xelatex-dev \
102 latex-dev:lualatex-dev \
103 latex-dev:dvilualatex-dev \
104 latex-dev:platex-dev \
105 latex-dev:uplatex-dev
106
107 include $(top_srcdir)/../../am/man.am
108
109 include $(top_srcdir)/../../am/man1_links.am
110
111 install-data-hook: install-man1-links
112
113 uninstall-hook: uninstall-man1-links
114
115 # to make a test tex.pdf from tex.man: make m=tex -C $ww/man testman
116 # where ww=.../Work/texk/web2c, and that's where the pdf file is output.
117 # We force a4 since that's what we distribute.
118 testopts = -man -Tpdf -P-pa4
119 testman:
120 pdf=`basename "$m" .man`.pdf; \
121 groff $(testopts) $(srcdir)/$m.man >"$$pdf" \
122 || { rm -f "$$pdf"; exit 1; }; # ls -l `pwd`/"$$pdf"
123
124 # remake pdfs for all *.man files, and make one combined pdf.
125 # (Comments about these options in ps2pdf-tub.)
126 allpdf = tlmanall.pdf
127 gs = gs
128 pdfconcat = $(gs) -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -r1200 \
129 -sOutputFile="$(allpdf)" -dAutoRotatePages=/None -dPrinted=false
130 testmans:
131 for m in $(srcdir)/*.man; do echo $$m; \
132 $(MAKE) -s m=`basename $$m .man` testman || exit 1; done
133 -rm -f $(allpdf); $(pdfconcat) *.pdf
134 spell:
135 EXTRADICT=`realpath $(srcdir)/spell.add` myspell $(srcdir)/*.man
136
137 EXTRA_DIST += \
138 spell.add