diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-12-28 07:07:59 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-12-28 07:07:59 -0800 |
commit | dd9398ff7d4776aa67951800aeb402a94d42f50f (patch) | |
tree | 7183f9d9011ad2d341d10f85fb51b5dcb0eeb195 /Makefile | |
parent | 07912e6dd718e22b318eaa7d7c3793f6c86ea40d (diff) | |
download | txr-dd9398ff7d4776aa67951800aeb402a94d42f50f.tar.gz txr-dd9398ff7d4776aa67951800aeb402a94d42f50f.tar.bz2 txr-dd9398ff7d4776aa67951800aeb402a94d42f50f.zip |
build: automate clean-up of shipped scanner and parser
* Makefile (shipped): Copy the shipped materials unconditionally,
rather than checking if they are different. If a patch exists
for a shipped file, then apply it.
* lex.yy.c.shipped, y.tab.c.shipped: Updated.
* lex.yy.c.patch, y.tab.c.patch: New files.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -283,10 +283,9 @@ lex.yy.c: $(top_srcdir)parser.l shipped: $(V)$(foreach NAME,$(SHIPPED), \ - if ! cmp -s $(NAME) $(NAME).shipped; then \ $(call ABBREV3SH,COPY,$(NAME).shipped,$(NAME)); \ cp $(NAME) $(NAME).shipped; \ - fi;) + [ -e $(NAME).patch ] && patch < $(NAME).patch || true;) else |