diff options
Diffstat (limited to 'share/mk/bsd.subdir.mk')
-rw-r--r-- | share/mk/bsd.subdir.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index f76d5e12321a..e1b12768c9e9 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -34,6 +34,15 @@ __<bsd.subdir.mk>__: .include <bsd.init.mk> +.if !defined(NEED_SUBDIR) +.if ${.MAKE.LEVEL} == 0 && ${MK_META_MODE} == "yes" && !empty(SUBDIR) && !(make(clean*) || make(destroy*)) +.include <meta.subdir.mk> +# ignore this +_SUBDIR: +.endif +.endif +.if !target(_SUBDIR) + DISTRIBUTION?= base .if !target(distribute) distribute: .MAKE @@ -122,6 +131,8 @@ ${__target}: .MAKE .endif .endfor +.endif + .if !target(install) .if !target(beforeinstall) beforeinstall: |