From: Ian Jackson Date: Thu, 30 Dec 2021 13:14:27 +0000 (+0000) Subject: Dir.sd.mk: Prevent builtin make rule overwriting conffile.c X-Git-Tag: v0.6.2~28 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fe0961cd719a9097471b14651af4144149494dea;p=secnet.git Dir.sd.mk: Prevent builtin make rule overwriting conffile.c Signed-off-by: Ian Jackson --- 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 $@ $<