From 85564c69cabe3613442b7788a9d133b1894ce02c Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Tue, 13 Oct 2015 19:11:22 +0000 Subject: [PATCH] bsd.subdir.mk: Handle cleanobj. Before this, the target was unknown. Now it will recurse on subdirs and run the target in the current directory. It is required to recurse as there may be subdirs that have objs in their directory or in the object directory, so it is not enough to just delete the objdir of the subdir parent. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division --- share/mk/bsd.subdir.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 94e983891214..cc66c9a36166 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -86,7 +86,7 @@ ${SUBDIR:N.WAIT}: .PHONY .MAKE # Work around parsing of .if nested in .for by putting .WAIT string into a var. __wait= .WAIT .for __target in all all-man checkdpadd clean cleandepend cleandir \ - cleanilinks depend distribute lint maninstall manlint obj objlink \ + cleanilinks cleanobj depend distribute lint maninstall manlint obj objlink \ realinstall regress tags ${SUBDIR_TARGETS} .ifdef SUBDIR_PARALLEL __subdir_targets=