diff options
author | ru <ru@FreeBSD.org> | 2005-05-31 07:14:51 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-05-31 07:14:51 +0000 |
commit | 0d07e4ee86c5f875d30d214612b6aea86b793a5a (patch) | |
tree | a35ecbdbbb1d60670550c7f1b4e371c2b5ea7709 /share | |
parent | 2696f1bfd4c7a8804c4c55e699e0c3681965d308 (diff) | |
download | FreeBSD-src-0d07e4ee86c5f875d30d214612b6aea86b793a5a.zip FreeBSD-src-0d07e4ee86c5f875d30d214612b6aea86b793a5a.tar.gz |
For ${SUBDIR} targets, change the type of dependency operator from `::'
to `:', so that it stays compatible with a stale dependency recorded in
.depend when the type of "foo" changes from file to directory or back.
Compensate for the loss of the "If no sources are specified, the target
is always re-created" feature by marking these targets with the .PHONY
attribute. While here, fix a bug in the target's script (nobody uses
these targets apparently).
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.subdir.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 3c9705f..6ee952f 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -57,13 +57,13 @@ _SUBDIR: .USE done .endif -${SUBDIR}:: +${SUBDIR}: .PHONY ${_+_}@if test -d ${.TARGET}.${MACHINE_ARCH}; then \ cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \ else \ cd ${.CURDIR}/${.TARGET}; \ fi; \ - ${_+_}${MAKE} all + ${MAKE} all .for __target in all all-man checkdpadd clean cleandepend cleandir \ |