Cleanup of some rules.

This commit is contained in:
Janet B. Anderson
2002-10-04 14:56:10 +00:00
parent c6c28baab8
commit dc3d8296cc
3 changed files with 16 additions and 11 deletions

View File

@@ -33,9 +33,9 @@ actionArchTargets = $(foreach action, $(ACTIONS),\
$(foreach arch, $(ARCHS), \
$(action)$(DIVIDER)$(arch)))
all : buildInstall
all : install
rebuild : clean all
rebuild : clean install
$(DIRS) $(dirActionTargets) $(dirArchTargets) $(dirActionArchTargets) :
$(MAKE) -C $(dirPart) $(actionArchPart)

View File

@@ -73,20 +73,20 @@ endif
all: install
install: buildInstall
buildInstall : build
rebuild: clean install
inc: $(JAVA_DIRECTORY_TARGETS) $(INSTALL_CLASSES) $(COMMON_JAVAINC)
build: inc
build: $(COMMON_TESTCLASSES) $(COMMON_JAR)
buildInstall : build
buildInstall : $(INSTALL_JAR)
install: buildInstall
rebuild: clean install
#This clean works only from O.* dirs.
clean::
@$(RMDIR) $(INSTALL_CLASSES)
@@ -120,3 +120,4 @@ $(INSTALL_JAVA)/%.jar: $(COMMON_DIR)/%.jar
@echo "Installing java jar file $@"
@$(INSTALL) -d -m 644 $< $(@D)
.PHONY: all install buildInstall rebuild clean build inc

View File

@@ -13,8 +13,11 @@
include $(CONFIG)/RULES_DIRS
uninstall$(DIVIDER)%: uninstallDirs
@$(RMDIR) $(INSTALL_LOCATION_BIN)/$* $(INSTALL_LOCATION_LIB)/$*
uninstallArchTargets = $(foreach arch,$(BUILD_ARCHS), uninstall$(DIVIDER)$(arch))
archPart = $(word 2, $(subst $(DIVIDER), ,$@))
$(uninstallArchTargets): uninstallDirs
@$(RMDIR) $(INSTALL_LOCATION_BIN)/$(archPart) $(INSTALL_LOCATION_LIB)/$(archPart)
cleandirs:
@echo " " #stops "nothing to be done for cleandirs" message
@@ -67,5 +70,6 @@ help:
@echo "Indiv. object targets are supported by O.<arch> level Makefile .e.g"
@echo " xxxRecord.o"
.PHONY : uninstall help cleandirs distclean uninstallDirs realuninstall realclean distclean
.PHONY : $(uninstallArchTargets)
.PHONY : uninstall help cleandirs distclean uninstallDirs realuninstall