Debian Codegraph @

texk/web2c/euptexdir/am/euptex.am

raw
1 ## $Id: euptex.am 77008 2025-12-02 23:27:19Z karl $
2 ## texk/web2c/euptexdir/am/euptex.am: Makefile fragment for e-upTeX.
3 ##
4 ## Copyright 2015-2025 Karl Berry <[email protected]>
5 ## Copyright 2011-2015 Peter Breitenlohner <[email protected]>
6 ## You may freely use, modify and/or distribute this file.
7
8 ## e-upTeX
9 ##
10 if EUPTEX
11 bin_PROGRAMS += euptex
12 if !UPTEX
13 bin_links += euptex$(EXEEXT):uptex
14 endif !UPTEX
15 bin_links += euptex$(EXEEXT):eptex
16 endif EUPTEX
17 EXTRA_PROGRAMS += euptex
18
19 euptex_CPPFLAGS = $(PTEXENC_INCLUDES) $(AM_CPPFLAGS) -I$(srcdir)/libmd5 $(ZLIB_INCLUDES)
20
21 # With --enable-ipc, e-upTeX may need to link with -lsocket.
22 euptex_LDADD = libukanji.a $(pproglib) $(PTEXENC_LIBS) $(LDADD) $(ipc_socketlibs) libmd5.a $(ZLIB_LIBS)
23 euptex_DEPENDENCIES = libukanji.a $(pproglib) $(PTEXENC_DEPEND) $(default_dependencies) libmd5.a $(ZLIB_DEPEND)
24
25 # e-upTeX C sources
26 euptex_c_h = euptexini.c euptex0.c euptexcoerce.h euptexd.h
27 nodist_euptex_SOURCES = $(euptex_c_h) euptex-pool.c
28 dist_euptex_SOURCES = euptexdir/euptexextra.c euptexdir/euptexextra.h
29
30 # We must create euptexd.h and [eu]ptexdir/[eu]ptex_version.h before building the euptex_OBJECTS.
31 euptex_prereq = euptexd.h etexdir/etex_version.h uptexdir/ptex_version.h \
32 euptexdir/eptex_version.h uptexdir/uptex_version.h
33 $(euptex_OBJECTS): $(euptex_prereq)
34
35 $(euptex_c_h): euptex-web2c
36 @$(web2c) euptex
37 euptex-web2c: euptex.p $(web2c_texmf) euptexdir/euptex.defines
38 @$(web2c) euptex
39
40 euptex-pool.c: euptex.pool euptexd.h $(makecpool_stamp)
41 $(makecpool) euptex >$@ || { rm -f $@; exit 1; }
42
43 # Tangling e-upTeX
44 euptex.p euptex.pool: euptex-tangle
45 $(texmf_tangle) euptex euptex
46 euptex-tangle: tangle$(EXEEXT) euptex.web euptex.ch tangle-sh
47 $(texmf_tangle) euptex euptex
48
49 # Generate euptex.web
50 euptex.web: tie$(EXEEXT) $(euptex_web_srcs)
51 $(tie_m) $(euptex_web_srcs)
52 euptex_web_srcs = \
53 tex.web \
54 etexdir/etex.ch \
55 etexdir/tex.ch0 \
56 tex.ch \
57 tracingstacklevels.ch \
58 partoken.ch \
59 locnull-optimize.ch \
60 showstream.ch \
61 zlib-fmt.ch \
62 etexdir/tex.ech
63
64 # Generate euptex.ch
65 euptex.ch: tie$(EXEEXT) euptex.web $(euptex_ch_srcs)
66 $(tie_c) euptex.web $(euptex_ch_srcs)
67 euptex_ch_srcs = \
68 euptexdir/etex.ch0 \
69 uptexdir/ptex-base.ch \
70 uptexdir/uptex-m.ch \
71 euptexdir/eptex.ech \
72 euptexdir/etex.ch1 \
73 $(euptex_ch_synctex) \
74 unbalanced-braces.ch \
75 euptexdir/fam256.ch \
76 euptexdir/pdfutils.ch \
77 euptexdir/suppresserrors.ch \
78 euptexdir/char-warning-eptex.ch \
79 tex-binpool.ch
80
81 EXTRA_DIST += $(euptex_web_srcs) $(euptex_ch_srcs) euptexdir/euptex.defines
82
83 DISTCLEANFILES += $(nodist_euptex_SOURCES) euptex.web euptex.ch euptex-web2c \
84 euptex.p euptex.pool euptex-tangle
85
86 ##
87 EXTRA_DIST += \
88 euptexdir/COPYRIGHT \
89 euptexdir/COPYRIGHT.jis \
90 euptexdir/ChangeLog \
91 euptexdir/EUPTEX.txt
92
93 # emacs-page
94 # e-upTeX Tests
95 #
96 euptex_tests = \
97 euptexdir/euptriptest.test euptexdir/eptriptest.test \
98 euptexdir/pdfprimitive.test \
99 euptexdir/eupver.test \
100 euptexdir/upkcat.test \
101 euptexdir/wcfname.test euptexdir/wcfname0.test \
102 euptexdir/euptex-ctrlsym.test \
103 euptexdir/euptex-prntknj.test \
104 euptexdir/euptex-kinsoku.test \
105 euptexdir/euptex-ofm.test euptexdir/euptex-prim.test \
106 euptexdir/euptex-ucs.test euptexdir/euptex-widow.test
107 euptexdir/euptriptest.log euptexdir/eptriptest.log: \
108 euptex$(EXEEXT) dvitype$(EXEEXT) pltotf$(EXEEXT) tftopl$(EXEEXT)
109 euptexdir/pdfprimitive.log: euptex$(EXEEXT)
110 euptexdir/eupver.log euptexdir/upkcat.log \
111 euptexdir/wcfname.log euptexdir/wcfname0.log \
112 euptexdir/euptex-ctrlsym.log euptexdir/euptex-prntknj.log \
113 euptexdir/euptex-kinsoku.log \
114 euptexdir/euptex-ofm.log euptexdir/euptex-prim.log \
115 euptexdir/euptex-ucs.log euptexdir/euptex-widow.log: euptex$(EXEEXT)
116
117 # Although not all the euptex tests depend on these files, several do,
118 # and there's no harm in ensuring they are built first. The individual
119 # tests also try to build them, but since the names are the same among
120 # the tests, that's subject to the usual parallel build race condition.
121 # So make them a dependency here.
122 #
123 $(euptex_tests): eup-basic.fmt
124 #
125 eup-basic.fmt: eup-basic.tex
126 TEXMFCNF=$(srcdir)/../kpathsea TEXINPUTS=$(srcdir)/tests: \
127 ./euptex -ini -etex eup-basic.tex
128 test -s eup-basic.fmt # just in case tex succeeded but no .fmt
129 #
130 eup-basic.tex: $(srcdir)/tests/dump-basic.tex
131 cp $(srcdir)/tests/dump-basic.tex ./eup-basic.tex
132
133 EXTRA_DIST += $(euptex_tests)
134
135 if EUPTEX
136 TESTS += $(euptex_tests)
137 TRIPTRAP += euptrip.diffs
138 TRIPTRAP_CLEAN += euptrip-clean
139 endif EUPTEX
140
141 ## Test data and results
142 ##
143 ## euptexdir/euptriptest.test
144 EXTRA_DIST += \
145 euptexdir/eptrip/eptrip.log \
146 euptexdir/eptrip/eptrip.tex \
147 euptexdir/euptrip/euptrip.diffs \
148 euptexdir/euptrip/texmf.cnf
149 DISTCLEANFILES += euptrip.diffs
150 EXTRA_DIST += \
151 euptexdir/pdfprimitive.test \
152 euptexdir/tests/pdfprimitive-test.tex \
153 euptexdir/tests/pdfprimitive-euptex.log
154 DISTCLEANFILES += pdfprimitive-euptex.*
155
156 ## euptexdir/euptex-ctrlsym.test
157 EXTRA_DIST += euptexdir/tests/ctrlsym.tex euptexdir/tests/ctrlsym-e.log \
158 euptexdir/tests/ctrlsym-u.log \
159 euptexdir/tests/endlinechar.tex euptexdir/tests/endline.log \
160 euptexdir/tests/control-symbol.tex euptexdir/tests/jctrlsym-e.log \
161 euptexdir/tests/jctrlsym-u.log \
162 euptexdir/tests/eup-endlinea.typ euptexdir/tests/eup-jctrlsyma-e.typ \
163 euptexdir/tests/eup-jctrlsyma-u.typ
164 DISTCLEANFILES += eup-ctrlsym.log eup-ctrlsym.out eup-ctrlsym.tex \
165 eup-endline*.* eup-jctrlsym*.*
166 ## euptexdir/euptex-prntknj.test
167 EXTRA_DIST += euptexdir/tests/printkanji.tex euptexdir/tests/pknj-s.log \
168 euptexdir/tests/pknj-e.log euptexdir/tests/pknj-u.log \
169 euptexdir/tests/eup-pknj-sa.typ euptexdir/tests/eup-pknj-ea.typ \
170 euptexdir/tests/eup-pknj-ua.typ
171 DISTCLEANFILES += eup-pknj-*.*
172 ## euptexdir/euptex-kinsoku.test
173 EXTRA_DIST += euptexdir/tests/postpena.tex euptexdir/tests/postpena.log \
174 euptexdir/tests/free_ixsp.tex euptexdir/tests/free_ixsp.log \
175 euptexdir/tests/free_pena.tex euptexdir/tests/free_pena.log \
176 euptexdir/tests/inhibitglue.tex euptexdir/tests/eup-inhibitgluea.typ \
177 euptexdir/tests/kinsoku-table.tex euptexdir/tests/kinsoku-table.log \
178 euptexdir/tests/kinsoku-search.tex euptexdir/tests/kinsoku-search.log
179 DISTCLEANFILES += eup-postpena*.* eup-free_*.* eup-inhibitglue*.* eup-kinsoku*.*
180 ## euptexdir/euptex-ofm.test
181 EXTRA_DIST += euptexdir/tests/eup-ofm.tex euptexdir/tests/eup-ofm.log
182 DISTCLEANFILES += eup-ofm.*
183 ## euptexdir/euptex-prim.test
184 EXTRA_DIST += euptexdir/tests/eup-prim.tex euptexdir/tests/eup-prim.log
185 DISTCLEANFILES += eup-prim.*
186 ## euptexdir/euptex-ucs.test
187 EXTRA_DIST += euptexdir/tests/ucs.tex euptexdir/tests/ucs-s.log \
188 euptexdir/tests/ucs-e.log euptexdir/tests/ucs-u.log
189 DISTCLEANFILES += eup-ucs*.*
190 ## euptexdir/euptex-widow.test
191 EXTRA_DIST += euptexdir/tests/eup-jchwidow-s.log \
192 euptexdir/tests/eup-jchwidow-e.log euptexdir/tests/eup-jchwidow.log
193 DISTCLEANFILES += eup-jchwidow*.*
194
195 euptrip.diffs: euptex$(EXEEXT) dvitype$(EXEEXT) pltotf$(EXEEXT) tftopl$(EXEEXT)
196 $(triptrap_diffs) $@
197 .PHONY: euptrip-clean
198 euptrip-clean:
199 rm -rf euptripdir
200
201 # (end of euptex.am)