From d148a444023fd428b45a38366f4cfaa13ffabf15 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Fri, 22 Dec 2023 23:39:47 +0000 Subject: [PATCH] Fix GNUism in Makefile regarding yacc Tested with bmake. --- Makefile.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 3ba7155..b41fc2c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -78,8 +78,11 @@ filesystem.o: joke_fs.c ppmtoinfo.o: ppmtoinfo.c $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -DAMIWM_HOME=\"$(AMIWM_HOME)\" $< -%.tab.c %.tab.h: %.y - $(YACC) -b $* -d $< +gram.tab.c gram.tab.h: gram.y + $(YACC) -b gram -d gram.y + +kbdmodule.tab.c kbdmodule.tab.h: kbdmodule.y + $(YACC) -b kbdmodule -d kbdmodule.y lex.c: lex.l $(LEX) -t $< > lex.c