From fe0961cd719a9097471b14651af4144149494dea Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 30 Dec 2021 13:14:27 +0000 Subject: [PATCH] Dir.sd.mk: Prevent builtin make rule overwriting conffile.c Signed-off-by: Ian Jackson --- Dir.sd.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dir.sd.mk b/Dir.sd.mk index 4f16b25..d65cc92 100644 --- a/Dir.sd.mk +++ b/Dir.sd.mk @@ -78,6 +78,12 @@ STALE_PYTHON_FILES= $(foreach e, py pyc, \ %.yy.c %.yy.h: %.fl flex --header=$*.yy.h -o$*.yy.c $< +%.c: %.y +# make has a builtin rule to run yacc, but we don't want that because +# our conffile.c is handwritten, and we use conffile.yy.c for the +# bison output. There is no need to do likewise for flex because +# our flex input files are end in .fl, not .l. + %.tab.c %.tab.h: %.y bison -d -o $@ $< -- 2.30.2