summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-03-15 15:07:00 +0100
committerMaria Matejka <mq@ucw.cz>2019-03-18 12:32:11 +0100
commit5d511948cddee415c2f0f1103bda0468a193f2d6 (patch)
tree7e3d0dd844f93686c43fb9f8db787caa38f7b1b0 /conf
parent875cc073b067f295cccc668008e10218f8e98dd3 (diff)
Build: Automatic dependency tracking for generated files
Diffstat (limited to 'conf')
-rw-r--r--conf/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/Makefile b/conf/Makefile
index 984624b4..5c10bbcb 100644
--- a/conf/Makefile
+++ b/conf/Makefile
@@ -25,9 +25,10 @@ $(o)cf-parse.tab.c: $(o)cf-parse.y
$(o)cf-lex.c: $(s)cf-lex.l
$(FLEX) $(FLEX_DEBUG) -f -s -B -8 -Pcf_ -o$@ $<
-$(o)cf-lex.o: $(o)cf-parse.tab.h $(o)keywords.h
$(o)cf-lex.o: CFLAGS+=-Wno-sign-compare -Wno-unused-function
+prepare: $(o)keywords.h $(o)commands.h $(o)cf-parse.tab.h
+
$(addprefix $(o), cf-parse.y keywords.h commands.h cf-parse.tab.h cf-parse.tab.c cf-lex.c): $(objdir)/.dir-stamp
$(call clean,cf-parse.tab.h cf-parse.tab.c cf-parse.y keywords.h commands.h cf-lex.c cf-parse.output)