summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/hitexdir/am
diff options
context:
space:
mode:
authorMartin Ruckert <martin.ruckert@hm.edu>2021-09-27 15:47:11 +0000
committerMartin Ruckert <martin.ruckert@hm.edu>2021-09-27 15:47:11 +0000
commite3e209d3909281914f399cecd1a54e77e986353a (patch)
tree723338bad24888cce766dfcc5e5f907c71ff1cf0 /Build/source/texk/web2c/hitexdir/am
parentb973fc4976e48f21fb8e9caf8f7d8109749a2c9c (diff)
adapted sources for license and file names, plus separate c and h files for lexer and parser
git-svn-id: svn://tug.org/texlive/trunk@60627 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/hitexdir/am')
-rw-r--r--Build/source/texk/web2c/hitexdir/am/hitex.am20
1 files changed, 6 insertions, 14 deletions
diff --git a/Build/source/texk/web2c/hitexdir/am/hitex.am b/Build/source/texk/web2c/hitexdir/am/hitex.am
index 31cf845c487..b82a4cc8648 100644
--- a/Build/source/texk/web2c/hitexdir/am/hitex.am
+++ b/Build/source/texk/web2c/hitexdir/am/hitex.am
@@ -36,7 +36,7 @@ format_c_h_l_y = basetypes.h error.h hformat.h \
mkhformat.c \
hput.c hput.h \
hget.c hget.h \
- shrink.lex-in shrink.yacc-in \
+ shrink.l shrink.y \
hishrink.c histretch.c
htex_c_h = htex.c htex.h
hitex_c_h = hitex.c hitex.h
@@ -64,15 +64,7 @@ htex-tangle: ctangle$(EXEEXT) hitexdir/htex.w tangle-sh hitex-tangle
hformat.c: mkhformat
./mkhformat >hformat.c || { rm -f hformat.c; exit 1; }
-# Postprocessing lex and yacc files generated by ctangle.
-# (SED is defined with AC_PROG_SED)
-shrink-parser.y: $(srcdir)/hitexdir/yacc.sed shrink.yacc-in
- $(SED) -f $(srcdir)/hitexdir/yacc.sed shrink.yacc-in >shrink-parser.y \
- || { rm -f shrink-parser.y; exit 1; }
-#
-shrink-lexer.l: $(srcdir)/hitexdir/lex.sed shrink.lex-in
- $(SED) -f $(srcdir)/hitexdir/lex.sed shrink.lex-in >shrink-lexer.l \
- || { rm -f shrink-lexer.l; exit 1; }
+
# Other web2c/*dir/am/*.am engine Makefile fragments define a bunch of
# _OBJECTS variables. This does not seem right to me. Instead, we
@@ -80,21 +72,21 @@ shrink-lexer.l: $(srcdir)/hitexdir/lex.sed shrink.lex-in
#
nodist_hitex_SOURCES = hformat.c hput.c $(htex_c_h) $(hitex_c_h)
nodist_histretch_SOURCES = hformat.c histretch.c
-nodist_hishrink_SOURCES = hformat.c hishrink.c shrink-lexer.l shrink-parser.y
+hishrink_SOURCES = lexer.c parser.c parser.h
+nodist_hishrink_SOURCES = hformat.c hishrink.c
# shrink needs the yacc header. It's actually the .o that should be the
# target here, seems to me, but hishrink.o is not used for the object
# name, it's hishrink-hishrink.o (because the program is also named
# hishrink), and adding that here ends up trying to link with
# hishrink-hishrink.o (I don't know), which doesn't exist. Sigh.
-hishrink.c: shrink-parser.h shrink-parser.c
+#hishrink.c: shrink-parser.h shrink-parser.c
-EXTRA_DIST += hitexdir/ChangeLog $(hitex_web) lex.sed yacc.sed
+EXTRA_DIST += hitexdir/ChangeLog $(hitex_web)
DISTCLEANFILES += $(nodist_hitex_SOURCES)
DISTCLEANFILES += $(nodist_hishrink_SOURCES) $(nodist_histretch_SOURCES)
DISTCLEANFILES += format-tangle htex-tangle hitex-tangle
-DISTCLEANFILES += shrink-parser.* shrink-lexer.*
## HiTeX tests
# still missing