From ad89f422ce986edd811c34e1ffb2d26bd562215f Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Wed, 24 Mar 2004 20:20:04 +0000 Subject: [PATCH] Added new arch clean which only removes O. dirs not O.Common. --- configure/RULES_ARCHS | 5 ++++- configure/RULES_DIRS | 2 +- configure/RULES_TOP | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure/RULES_ARCHS b/configure/RULES_ARCHS index f0c32b21d..52e208eca 100644 --- a/configure/RULES_ARCHS +++ b/configure/RULES_ARCHS @@ -68,6 +68,9 @@ $(checkReleaseTargets):checkRelease.%: clean :: $(RMDIR) $(addprefix O.,$(BUILD_ARCHS)) O.Common +archclean :: + $(RMDIR) $(addprefix O.,$(BUILD_ARCHS)) + $(cleanArchTargets) :: $(RMDIR) O.$(archPart) @@ -77,6 +80,6 @@ realclean :: .PHONY : $(actionArchTargets) .PHONY : $(cleanArchTargets) .PHONY : $(BUILD_ARCHS) -.PHONY : $(ACTIONS) clean realclean all +.PHONY : $(ACTIONS) clean realclean archclean all .PHONY : checkRelease $(checkReleaseTargets) diff --git a/configure/RULES_DIRS b/configure/RULES_DIRS index 5add76321..888102812 100644 --- a/configure/RULES_DIRS +++ b/configure/RULES_DIRS @@ -13,7 +13,7 @@ ARCHS += $(BUILD_ARCHS) -ACTIONS += inc build install buildInstall clean realclean +ACTIONS += inc build install buildInstall clean realclean archclean dirPart = $(word 1, $(subst $(DIVIDER), ,$@)) actionArchPart = $(join $(word 2, $(subst $(DIVIDER), ,$@)), \ diff --git a/configure/RULES_TOP b/configure/RULES_TOP index 997eece6d..d07c83bd0 100644 --- a/configure/RULES_TOP +++ b/configure/RULES_TOP @@ -60,6 +60,7 @@ help: @echo " rebuild - Same as clean install" @echo " inc - Installs header files" @echo " build - Builds all targets" + @echo " archclean - Removes O. dirs but not O.Common dir" @echo "\"Partial\" build targets supported by Makefiles:" @echo " inc. - Installs only header files." @echo " install. - Builds and installs only."