1 ## texk/web2c/alephdir/am/aleph.am: Makefile fragment for Aleph.
3 ## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
4 ## You may freely use, modify and/or distribute this file.
11 EXTRA_PROGRAMS += aleph
13 al_tangle = WEBINPUTS=.:$(srcdir) AM_V_P=$(AM_V_P) $(SHELL) ./tangle-sh $@ $(OTANGLE)
15 # With --enable-ipc, Aleph may need to link with -lsocket.
16 aleph_LDADD = $(LDADD) $(ipc_socketlibs)
18 aleph_CPPFLAGS = -I$(srcdir)/alephdir $(AM_CPPFLAGS)
21 aleph_c_h = alephini.c aleph0.c alephcoerce.h alephd.h
22 nodist_aleph_SOURCES = $(aleph_c_h) aleph-pool.c
23 dist_aleph_SOURCES = \
26 alephdir/alephextra.c \
27 alephdir/alephextra.h \
30 # We must create alephd.h before building the aleph_OBJECTS.
31 $(aleph_OBJECTS): alephd.h
33 $(aleph_c_h): aleph-web2c
35 aleph-web2c: aleph.p $(web2c_texmf) alephdir/aleph.defines
37 aleph-pool.c: aleph.pool alephd.h $(makecpool_stamp)
38 $(makecpool) aleph >$@ || rm -f $@
41 aleph.p aleph.pool: aleph-tangle
42 @$(al_tangle) aleph aleph
43 aleph-tangle: otangle$(EXEEXT) aleph.web aleph.ch tangle-sh
44 @$(al_tangle) aleph aleph
56 alephdir/omfilter.ch \
67 alephdir/eonewdir.ch \
71 aleph.web: tie$(EXEEXT) $(aleph_web_srcs)
72 $(tie_m) $(aleph_web_srcs)
76 alephdir/com16bit.ch \
83 alephdir/comfilter.ch \
84 alephdir/comtrans.ch \
86 alephdir/comsrcspec.ch \
88 aleph.ch: tie$(EXEEXT) aleph.web $(aleph_ch_srcs)
89 $(tie_c) aleph.web $(aleph_ch_srcs)
92 EXTRA_DIST += $(aleph_web_srcs) $(aleph_ch_srcs)
94 DISTCLEANFILES += $(nodist_aleph_SOURCES) aleph.web aleph.ch aleph-web2c \
95 aleph.p aleph.pool aleph-tangle
99 alephdir/aleph.defines \
100 alephdir/aleph.version
104 aleph_tests = alephdir/aleph.test
105 alephdir/aleph.log: aleph$(EXEEXT)
107 EXTRA_DIST += $(aleph_tests)
110 TESTS += $(aleph_tests)