chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e410c1
)
Dir.sd.mk: Prevent builtin make rule overwriting conffile.c
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 30 Dec 2021 13:14:27 +0000
(13:14 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 30 Dec 2021 13:38:07 +0000
(13:38 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Dir.sd.mk
patch
|
blob
|
history
diff --git
a/Dir.sd.mk
b/Dir.sd.mk
index 4f16b25572c1cc0e06529d52bc8bc89a807c2b96..d65cc92e55963d8388ed00244c2e8ab928c1c600 100644
(file)
--- 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 $@ $<