Merge pull request #21 from chewi/bmake-yacc

Fix GNUism in Makefile regarding yacc
This commit is contained in:
Adrian Chadd
2023-12-22 17:31:26 -08:00
committed by GitHub

View File

@@ -78,8 +78,11 @@ filesystem.o: joke_fs.c
ppmtoinfo.o: ppmtoinfo.c ppmtoinfo.o: ppmtoinfo.c
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -DAMIWM_HOME=\"$(AMIWM_HOME)\" $< $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -DAMIWM_HOME=\"$(AMIWM_HOME)\" $<
%.tab.c %.tab.h: %.y gram.tab.c gram.tab.h: gram.y
$(YACC) -b $* -d $< $(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.c: lex.l
$(LEX) -t $< > lex.c $(LEX) -t $< > lex.c