Cleanup of rules.

This commit is contained in:
Janet B. Anderson
2002-10-04 14:53:00 +00:00
parent 1c27d187c1
commit 9a173a46d9
+8 -6
View File
@@ -15,7 +15,7 @@ all: install
build install buildInstall: $(CHECK_RELEASE_$(CHECK_RELEASE))
rebuild: clean all
rebuild: clean install
ACTIONS = inc
ACTIONS += build
@@ -29,6 +29,8 @@ archPart = $(word 2, $(subst $(DIVIDER), ,$@))
actionArchTargets = $(foreach x, $(ACTIONS),\
$(foreach arch,$(BUILD_ARCHS), $(x)$(DIVIDER)$(arch)))
cleanArchTargets = $(foreach arch,$(BUILD_ARCHS), clean$(DIVIDER)$(arch)))
buildDirs = $(addprefix O.,$(BUILD_ARCHS))
$(actionArchTargets) : $(buildDirs) O.Common
@@ -54,15 +56,15 @@ checkRelease: $(wildcard $(TOP)/configure/RELEASE*)
clean ::
$(RMDIR) $(addprefix O.,$(BUILD_ARCHS)) O.Common
clean$(DIVIDER)% ::
$(RMDIR) O.$*
$(cleanArchTargets) ::
$(RMDIR) O.$(archPart)
realclean ::
$(RMDIR) O.*
.PHONY : $(buildActionTargets)
.PHONY : $(buildActionArchTargets)
.PHONY : $(buildArchs)
.PHONY : $(actionArchTargets)
.PHONY : $(cleanArchTargets)
.PHONY : $(BUILD_ARCHS)
.PHONY : $(ACTIONS) clean realclean all
.PHONY : checkRelease