From 3d7f65df6e2e73128b476eb062c48ca26b91a64c Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 31 May 2005 07:14:51 +0000 Subject: [PATCH] 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). --- share/mk/bsd.subdir.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 3c9705fbede..6ee952f36a5 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 \