From: Michael Stapelberg Date: Sat, 13 Feb 2010 18:27:28 +0000 (+0100) Subject: makefile: parser/lexer also depend on header files X-Git-Tag: 3.e~6^2~147 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01297af20ac4cf3f7743067fb19ebf1075d83de3;p=i3%2Fi3 makefile: parser/lexer also depend on header files --- diff --git a/Makefile b/Makefile index 7245c5c4..6e07d080 100644 --- a/Makefile +++ b/Makefile @@ -44,12 +44,12 @@ loglevels.h: done; \ echo "};") > include/loglevels.h; -src/cfgparse.yy.o: src/cfgparse.l +src/cfgparse.yy.o: src/cfgparse.l ${HEADERS} echo "LEX $<" flex -i -o$(@:.o=.c) $< $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c) -src/cfgparse.y.o: src/cfgparse.y +src/cfgparse.y.o: src/cfgparse.y ${HEADERS} echo "YACC $<" bison --debug --verbose -b $(basename $< .y) -d $< $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.y/ { print NR }' loglevels.tmp))" -c -o $@ $(<:.y=.tab.c)