Our make can't actually turn off implicit rules per-target, and the
"depend:" rule had no actual commands to execute, so it used the implicit ".c:" rule in gas.new (which has a depend.c). Add a command here -- just "true" -- that prevents use of implicit rules. This may need a new .-option in make(1) to be done Right.
This commit is contained in:
parent
521469b010
commit
e2e1136b79
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.dep.mk,v 1.23 1998/08/18 19:12:42 tv Exp $
|
||||
# $NetBSD: bsd.dep.mk,v 1.24 1999/02/03 21:08:05 tv Exp $
|
||||
|
||||
.PHONY: cleandepend
|
||||
cleandir distclean: cleandepend
|
||||
|
@ -9,6 +9,7 @@ MKDEP?= mkdep
|
|||
depend: beforedepend
|
||||
.if defined(SRCS)
|
||||
depend: .depend
|
||||
@true # hack to prevent "make depend" from using implicit rules
|
||||
.NOPATH: .depend
|
||||
.depend: ${SRCS} ${DPSRCS}
|
||||
@rm -f .depend
|
||||
|
|
Loading…
Reference in New Issue