diff options
author | harti <harti@FreeBSD.org> | 2004-08-09 10:54:05 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-08-09 10:54:05 +0000 |
commit | 273eef07a6984e917a1b9593d09fbfd80eed5cfb (patch) | |
tree | 831c251f3cf038954a315b162eeb8ecb41c2668e /share/mk/sys.mk | |
parent | 3495bef6881cf6244303e52e413eb4f366b65cdc (diff) | |
download | FreeBSD-src-273eef07a6984e917a1b9593d09fbfd80eed5cfb.zip FreeBSD-src-273eef07a6984e917a1b9593d09fbfd80eed5cfb.tar.gz |
Use the '+' flag to make make recurse into sub-directories even when
given -n. For POLA reasons this behaviour is switched on only when
at least two -n flags are given to make. One -n flag keeps the old behaviour
of showing the shell command that would recurse into the sub-directories.
Discussed with: ru
Diffstat (limited to 'share/mk/sys.mk')
-rw-r--r-- | share/mk/sys.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk index 51ec2aa..e08f3e5 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -57,6 +57,12 @@ ECHODIR ?= true .endif .endif +.if !empty(.MAKEFLAGS:M-n) && ${.MAKEFLAGS:M-n} == "-n" +_+_ ?= +.else +_+_ ?= + +.endif + .if defined(%POSIX) FC ?= fort77 FFLAGS ?= -O 1 |