Debian Codegraph @

texk/web2c/alephdir/am/aleph.am

raw
1 ## $Id: aleph.am 73684 2025-02-02 08:06:22Z takuji $
2 ## texk/web2c/alephdir/am/aleph.am: Makefile fragment for Aleph.
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 ## Aleph
9 ##
10 if ALEPH
11 bin_PROGRAMS += aleph
12 endif ALEPH
13 EXTRA_PROGRAMS += aleph
14
15 al_tangle = WEBINPUTS=.:$(srcdir) AM_V_P=$(AM_V_P) $(SHELL) ./tangle-sh $@ $(OTANGLE)
16
17 # With --enable-ipc, Aleph may need to link with -lsocket.
18 aleph_LDADD = $(LDADD) $(ipc_socketlibs)
19
20 aleph_CPPFLAGS = -I$(srcdir)/alephdir $(AM_CPPFLAGS)
21
22 # Aleph C sources
23 aleph_c_h = alephini.c aleph0.c alephcoerce.h alephd.h
24 nodist_aleph_SOURCES = $(aleph_c_h) aleph-pool.c
25 dist_aleph_SOURCES = \
26 alephdir/aleph.c \
27 alephdir/alephbis.c \
28 alephdir/alephextra.c \
29 alephdir/alephextra.h \
30 alephdir/alephmem.h
31
32 # We must create alephd.h before building the aleph_OBJECTS.
33 $(aleph_OBJECTS): alephd.h
34
35 $(aleph_c_h): aleph-web2c
36 @$(web2c) aleph
37 aleph-web2c: aleph.p $(web2c_texmf) alephdir/aleph.defines
38 @$(web2c) aleph
39 aleph-pool.c: aleph.pool alephd.h $(makecpool_stamp)
40 $(makecpool) aleph >$@ || { rm -f $@; exit 1; }
41
42 # Tangling Aleph
43 aleph.p aleph.pool: aleph-tangle
44 $(al_tangle) aleph aleph
45 aleph-tangle: otangle$(EXEEXT) aleph.web aleph.ch tangle-sh
46 $(al_tangle) aleph aleph
47
48 # Generate aleph.web
49 aleph_web_srcs = \
50 tex.web \
51 alephdir/om16bit.ch \
52 alephdir/omstr.ch \
53 alephdir/omfont.ch \
54 alephdir/omchar.ch \
55 alephdir/omfi.ch \
56 alephdir/ompar.ch \
57 alephdir/omocp.ch \
58 alephdir/omfilter.ch \
59 alephdir/omtrans.ch \
60 alephdir/omdir.ch \
61 alephdir/eobase.ch \
62 alephdir/eofmt.ch \
63 alephdir/eomem.ch \
64 alephdir/eo16bit.ch \
65 alephdir/eoext.ch \
66 alephdir/eoeqtb.ch \
67 alephdir/eofix.ch \
68 alephdir/eocprt.ch \
69 alephdir/eonewdir.ch \
70 alephdir/eover.ch \
71 alephdir/eopage.ch \
72 alephdir/eochar.ch \
73 alephdir/latespecial.ch
74 aleph.web: tie$(EXEEXT) $(aleph_web_srcs)
75 $(tie_m) $(aleph_web_srcs)
76
77 # Generate aleph.ch
78 aleph_ch_srcs = \
79 alephdir/com16bit.ch \
80 alephdir/comstr.ch \
81 alephdir/comfont.ch \
82 alephdir/comchar.ch \
83 alephdir/comfi.ch \
84 alephdir/compar.ch \
85 alephdir/comocp.ch \
86 alephdir/comfilter.ch \
87 alephdir/comtrans.ch \
88 alephdir/comdir.ch \
89 alephdir/comsrcspec.ch \
90 alephdir/ceostuff.ch
91 aleph.ch: tie$(EXEEXT) aleph.web $(aleph_ch_srcs)
92 $(tie_c) aleph.web $(aleph_ch_srcs)
93
94 ##
95 EXTRA_DIST += $(aleph_web_srcs) $(aleph_ch_srcs)
96
97 DISTCLEANFILES += $(nodist_aleph_SOURCES) aleph.web aleph.ch aleph-web2c \
98 aleph.p aleph.pool aleph-tangle
99
100 EXTRA_DIST += \
101 alephdir/ChangeLog \
102 alephdir/aleph.defines \
103 alephdir/aleph.version
104
105 # Aleph Tests
106 #
107 aleph_tests = alephdir/aleph.test \
108 alephdir/aleph-ofm.test alephdir/aleph-lmr.test \
109 alephdir/aleph-cat.test
110 alephdir/aleph.log \
111 alephdir/aleph-ofm.log alephdir/aleph-lmr.log \
112 alephdir/aleph-cat.log \
113 : aleph$(EXEEXT)
114
115 EXTRA_DIST += $(aleph_tests)
116
117 ## alephdir/aleph-ofm.test
118 EXTRA_DIST += alephdir/tests/al-ofm.tex alephdir/tests/al-ofm.log
119 DISTCLEANFILES += al-ofm.*
120 ## alephdir/aleph-lmr.test
121 EXTRA_DIST += alephdir/tests/lmr1.tex alephdir/tests/al-lmr1.log
122 DISTCLEANFILES += al-lmr*.*
123 ## alephdir/aleph-cat.test
124 EXTRA_DIST += alephdir/tests/catcd.tex alephdir/tests/al-cat.log
125 DISTCLEANFILES += al-cat.*
126
127 if ALEPH
128 TESTS += $(aleph_tests)
129 endif ALEPH
130
131 # (end of aleph.am)