From dd9398ff7d4776aa67951800aeb402a94d42f50f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 28 Dec 2023 07:07:59 -0800 Subject: 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. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cb24327f..e3f40c99 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3