## texk/web2c/etexdir/am/etex.am: Makefile fragment for e-TeX. ## ## Copyright (C) 2009-2012 Peter Breitenlohner ## You may freely use, modify and/or distribute this file. ## e-TeX ## if ETEX bin_PROGRAMS += etex endif ETEX EXTRA_PROGRAMS += etex etex_CPPFLAGS = $(AM_CPPFLAGS) # With --enable-ipc, e-TeX may need to link with -lsocket. etex_LDADD = $(LDADD) $(ipc_socketlibs) # e-TeX C sources etex_c_h = etexini.c etex0.c etexcoerce.h etexd.h nodist_etex_SOURCES = $(etex_c_h) etex-pool.c dist_etex_SOURCES = etexdir/etexextra.c etexdir/etexextra.h etexdir/etex_version.h # We must create etexd.h and etexdir/etex_version.h before building the etex_OBJECTS. etex_prereq = etexd.h etexdir/etex_version.h $(etex_OBJECTS): $(etex_prereq) $(etex_c_h): etex-web2c @$(web2c) etex etex-web2c: etex.p $(web2c_texmf) @$(web2c) etex etex-pool.c: etex.pool etexd.h $(makecpool_stamp) $(makecpool) etex >$@ || rm -f $@ # Tangling e-TeX etex.p etex.pool: etex-tangle @$(texmf_tangle) etex etex etex-tangle: tangle$(EXEEXT) etex.web etex.ch tangle-sh @$(texmf_tangle) etex etex # Extract etex version etexdir/etex_version.h: etexdir/etex.ch $(MKDIR_P) etexdir grep '^@d eTeX_version_string==' $(srcdir)/etexdir/etex.ch \ | sed "s/^.*'-/#define ETEX_VERSION \"/;s/'.*$$/\"/" >$@ # Generate etex.web etex.web: tie$(EXEEXT) $(etex_web_srcs) $(tie) -m etex.web $(etex_web_srcs) etex_web_srcs = \ tex.web \ etexdir/etex.ch # Generate etex.ch etex.ch: tie$(EXEEXT) etex.web $(etex_ch_srcs) $(tie) -c etex.ch etex.web $(etex_ch_srcs) etex_ch_srcs = \ etexdir/tex.ch0 \ tex.ch \ enctex.ch \ $(etex_ch_synctex) \ etexdir/tex.ch1 \ etexdir/tex.ech \ tex-binpool.ch ## EXTRA_DIST += $(etex_web_srcs) $(etex_ch_srcs) DISTCLEANFILES += $(nodist_etex_SOURCES) etex.web etex.ch etex-web2c \ etex.p etex.pool etex-tangle EXTRA_DIST += \ etexdir/ChangeLog \ etexdir/etex_gen.tex # e-TeX Tests # etex_tests = etexdir/wprob.test etexdir/etrip.test EXTRA_DIST += $(etex_tests) if ETEX TESTS += $(etex_tests) check_PROGRAMS += dvitype pltotf tftopl TRIPTRAP += etrip.diffs TRIPTRAP_CLEAN += etrip-clean endif ETEX DISTCLEANFILES += etrip.diffs ## wprob.test EXTRA_DIST += tests/wprob.tex DISTCLEANFILES += wprob.log wprob.tex ## etrip.test etrip.diffs: etex$(EXEEXT) $(triptrap_diffs) $@ .PHONY: etrip-clean etrip-clean: rm -f trip.tfm trip.pl trip.tex trip.fmt ctripin.fot ctripin.log rm -f ctrip.fot ctrip.log trip.dvi ctrip.typ rm -f xtripin.fot xtripin.log rm -f xtrip.fot xtrip.log xtrip.typ rm -f etrip.tfm etrip.pl etrip.tex etrip.fmt etripin.fot etripin.log rm -f etrip.fot etrip.log etrip.dvi etrip.out etrip.typ rm -f tripos.tex 8terminal.tex rm -rf tfm ## Test data ## EXTRA_DIST += \ etexdir/etrip/etrip.diffs \ etexdir/etrip/etrip.fot \ etexdir/etrip/etrip.log \ etexdir/etrip/etrip.out \ etexdir/etrip/etrip.pl \ etexdir/etrip/etrip.tex \ etexdir/etrip/etrip.typ \ etexdir/etrip/etrip1.in \ etexdir/etrip/etrip2.in \ etexdir/etrip/etrip3.in \ etexdir/etrip/etripin.log \ etexdir/etrip/etripman.tex \ etexdir/etrip/texmf.cnf \ etexdir/etrip/trip2.in