diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index ac20086a19cd..920f560f4af1 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -148,7 +148,7 @@ PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \ .endif .if ${MK_STAGING} != "no" -.if defined(_SKIP_BUILD) || !make(all) +.if defined(_SKIP_BUILD) || (!make(all) && !make(clean*)) staging stage_libs stage_files stage_as stage_links stage_symlinks: .else # allow targets like beforeinstall to be leveraged