summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/alephdir/am/aleph.am
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/alephdir/am/aleph.am')
-rw-r--r--Build/source/texk/web2c/alephdir/am/aleph.am15
1 files changed, 12 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/alephdir/am/aleph.am b/Build/source/texk/web2c/alephdir/am/aleph.am
index 6b3ec3846e5..36d4d1b71b8 100644
--- a/Build/source/texk/web2c/alephdir/am/aleph.am
+++ b/Build/source/texk/web2c/alephdir/am/aleph.am
@@ -8,9 +8,11 @@ endif ALEPH
EXTRA_PROGRAMS += aleph
## With --enable-ipc, Aleph may need to link with -lsocket.
-aleph_LDADD = $(LDADD) $(socketlibs)
+aleph_LDADD = $(LDADD) $(ipc_socketlibs)
aleph_CPPFLAGS = -I$(srcdir)/alephdir $(AM_CPPFLAGS)
+
+## Aleph C sources
aleph_c_h = alephini.c aleph0.c aleph1.c aleph2.c aleph3.c alephcoerce.h alephd.h
nodist_aleph_SOURCES = $(aleph_c_h) aleph-pool.c alephextra.c
aleph_SOURCES = \
@@ -28,15 +30,18 @@ aleph-web2c: aleph.p $(web2c_texmf) alephdir/aleph.defines
$(web2c) aleph
echo timestamp >$@
touch $(aleph_c_h)
+aleph-pool.c: aleph.pool $(makecpool) alephdir/aleph-pool.h
+ $(makecpool) aleph.pool $(srcdir)/alephdir/aleph-pool.h >$@ || rm -f $@
alephextra.c: lib/texmfmp.c alephdir/alephextra.h alephd.h
sed s/TEX-OR-MF-OR-MP/aleph/ $(srcdir)/lib/texmfmp.c >$@
+
+## Tangling Aleph
aleph.p aleph.pool: aleph-tangle
aleph-tangle: otangle$(EXEEXT) aleph.web aleph.ch
$(otangle) aleph aleph
echo timestamp >$@
touch aleph.p aleph.pool
-aleph-pool.c: aleph.pool $(makecpool) alephdir/aleph-pool.h
- $(makecpool) aleph.pool $(srcdir)/alephdir/aleph-pool.h >$@ || rm -f $@
+
## Generate aleph.web
aleph_web_srcs = \
tex.web \
@@ -64,6 +69,7 @@ aleph_web_srcs = \
alephdir/eochar.ch
aleph.web: $(TIE) $(aleph_web_srcs)
$(tie) -m aleph.web $(aleph_web_srcs)
+
## Generate aleph.ch
aleph_ch_srcs = \
alephdir/com16bit.ch \
@@ -80,7 +86,10 @@ aleph_ch_srcs = \
alephdir/ceostuff.ch
aleph.ch: $(TIE) aleph.web $(aleph_ch_srcs)
$(tie) -c aleph.ch aleph.web $(aleph_ch_srcs)
+
+##
EXTRA_DIST += $(aleph_web_srcs) $(aleph_ch_srcs) lib/texmfmp.c
+
DISTCLEANFILES += $(nodist_aleph_SOURCES) aleph.web aleph.ch aleph-web2c \
aleph.p aleph.pool aleph-tangle