summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/man/man1/Makefile
blob: 155b2814397553c15e1afae637168e500784ba63 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# $Id$
# Public domain.  Originally written by Manuel Pegourie-Gonnard, 2008.

SRC = $(wildcard man1/*.1)
PDF = $(patsubst %.1, %.man1.pdf, $(SRC))

# these variables with automatic variables don't get passed to the
# submake; these definitions are repeated in man5/Makefile.
# All of this is more complicated than it needs to be.
PSPDF_MV   = $(PSPDF) - $@.tmp && mv $@.tmp $@ || rm $@.tmp
MKPDF      = $(GROFF) $(PDFOPTS) $< | $(PSPDF_MV)
MKPDF_UTF8 = env GROFF_FONT_PATH=../../../tlpkg/dev/groff-utf8 \
                 $(GROFF) -K utf8 $(PDFOPTS) $< | $(PSPDF_MV)

all: pdf 
pdf: $(PDF)
clean:
	@echo 'Removing pdf files.'
	rm -f -- $(PDF)

%.man1.pdf: %.1
	$(MKPDF)

# Special case for mendex.1, which contains multi-byte characters.
# leave it for Japanese maintainers
man1/mendex.man1.pdf: man1/mendex.1
	@echo 'Skipping mendex.1, leaving it to texjp.'

# man pages which use UTF-8; probably there are more.
man1/findhyph.man1.pdf: man1/findhyph.1
	$(MKPDF_UTF8)
man1/luaotfload-tool.man1.pdf: man1/luaotfload-tool.1
	$(MKPDF_UTF8)

# 
# See ../Makefile for the so.rules target which generates this list of rules.
	
man1/cslatex.man1.pdf: man1/cslatex.1 man1/latex.1
	$(MKPDF)

man1/ctangle.man1.pdf: man1/ctangle.1 man1/cweb.1
	$(MKPDF)

man1/cweave.man1.pdf: man1/cweave.1 man1/cweb.1
	$(MKPDF)

man1/dvigif.man1.pdf: man1/dvigif.1 man1/dvipng.1
	$(MKPDF)

man1/dvilj2p.man1.pdf: man1/dvilj2p.1 man1/dvilj.1
	$(MKPDF)

man1/dvilj4.man1.pdf: man1/dvilj4.1 man1/dvilj.1
	$(MKPDF)

man1/dvilj4l.man1.pdf: man1/dvilj4l.1 man1/dvilj.1
	$(MKPDF)

man1/dvilj6.man1.pdf: man1/dvilj6.1 man1/dvilj.1
	$(MKPDF)

man1/dvilualatex.man1.pdf: man1/dvilualatex.1 man1/latex.1
	$(MKPDF)

man1/dvipdfm.man1.pdf: man1/dvipdfm.1 man1/dvipdfmx.1
	$(MKPDF)

man1/ebb.man1.pdf: man1/ebb.1 man1/extractbb.1
	$(MKPDF)

man1/eptex.man1.pdf: man1/eptex.1 man1/ptex.1
	$(MKPDF)

man1/euptex.man1.pdf: man1/euptex.1 man1/ptex.1
	$(MKPDF)

man1/fmtutil-sys.man1.pdf: man1/fmtutil-sys.1 man1/fmtutil.1
	$(MKPDF)

man1/fmtutil-user.man1.pdf: man1/fmtutil-user.1 man1/fmtutil.1
	$(MKPDF)

man1/inimf.man1.pdf: man1/inimf.1 man1/mf.1
	$(MKPDF)

man1/initex.man1.pdf: man1/initex.1 man1/tex.1
	$(MKPDF)

man1/kpsepath.man1.pdf: man1/kpsepath.1 man1/kpsetool.1
	$(MKPDF)

man1/kpsexpand.man1.pdf: man1/kpsexpand.1 man1/kpsetool.1
	$(MKPDF)

man1/lamed.man1.pdf: man1/lamed.1 man1/latex.1
	$(MKPDF)

man1/lualatex.man1.pdf: man1/lualatex.1 man1/latex.1
	$(MKPDF)

man1/mf-nowin.man1.pdf: man1/mf-nowin.1 man1/mf.1
	$(MKPDF)

man1/mktexfmt.man1.pdf: man1/mktexfmt.1 man1/fmtutil.1
	$(MKPDF)

man1/odvicopy.man1.pdf: man1/odvicopy.1 man1/dvicopy.1
	$(MKPDF)

man1/odvitype.man1.pdf: man1/odvitype.1 man1/dvitype.1
	$(MKPDF)

man1/otangle.man1.pdf: man1/otangle.1 man1/tangle.1
	$(MKPDF)

man1/pdfclose.man1.pdf: man1/pdfclose.1 man1/pdfopen.1
	$(MKPDF)

man1/pdfcslatex.man1.pdf: man1/pdfcslatex.1 man1/latex.1
	$(MKPDF)

man1/pdflatex.man1.pdf: man1/pdflatex.1 man1/latex.1
	$(MKPDF)

man1/platex.man1.pdf: man1/platex.1 man1/latex.1
	$(MKPDF)

man1/repstopdf.man1.pdf: man1/repstopdf.1 man1/epstopdf.1
	$(MKPDF)

man1/texconfig-sys.man1.pdf: man1/texconfig-sys.1 man1/texconfig.1
	$(MKPDF)

man1/texhash.man1.pdf: man1/texhash.1 man1/mktexlsr.1
	$(MKPDF)

man1/texlua.man1.pdf: man1/texlua.1 man1/luatex.1
	$(MKPDF)

man1/texluac.man1.pdf: man1/texluac.1 man1/luatex.1
	$(MKPDF)

man1/updmap-sys.man1.pdf: man1/updmap-sys.1 man1/updmap.1
	$(MKPDF)

man1/updmap-user.man1.pdf: man1/updmap-user.1 man1/updmap.1
	$(MKPDF)

man1/uplatex.man1.pdf: man1/uplatex.1 man1/latex.1
	$(MKPDF)

man1/uptex.man1.pdf: man1/uptex.1 man1/ptex.1
	$(MKPDF)

man1/xdvipdfmx.man1.pdf: man1/xdvipdfmx.1 man1/dvipdfmx.1
	$(MKPDF)

man1/xelatex.man1.pdf: man1/xelatex.1 man1/latex.1
	$(MKPDF)