Optimization by not creating existing dirs

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9367 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-03-14 12:32:59 +00:00
parent e4141491b4
commit 295a21549a
7 changed files with 53 additions and 19 deletions

View file

@ -1,3 +1,21 @@
Wed Mar 14 11:48:10 2001 Nicola Pero <nicola@brainstorm.co.uk>
* application.make: Optimization: rearranged targets as not to run
mkdirs to create directories if the directories already exists.
* bundle.make: Idem.
* documentation.make: Idem.
* library.make: Idem.
* java.make: Idem.
* tool.make: Idem.
* ctool.make: Same optimization but I had not the opportunity to
test it. Please anybody having, do and fix it if needed.
* gswapp.make: Idem.
* gswbundle.make: Idem.
* objc.make: Idem.
* palette.make: Idem.
* service.make: Idem.
2001-03-14 Richard Frith-Macdonald <rfm@gnu.org>
* rules.make: Quicks hack in before-all... create a symbolic link

View file

@ -104,9 +104,11 @@ after-$(TARGET)-all::
internal-ctool-install:: internal-ctool-all internal-install-dirs install-ctool
internal-install-dirs::
$(CTOOL_INSTALLATION_DIR):
$(MKDIRS) $(CTOOL_INSTALLATION_DIR)
internal-install-dirs:: $(CTOOL_INSTALLATION_DIR)
ifeq ($(GNUSTEP_FLATTENED),)
install-ctool::
$(INSTALL_PROGRAM) -m 0755 $(GNUSTEP_OBJ_DIR)/$(INTERNAL_ctool_NAME)$(EXEEXT) $(CTOOL_INSTALLATION_DIR);

View file

@ -221,7 +221,9 @@ gswapp-components:: $(GSWAPP_DIR_NAME)
done;\
fi)
gswapp-webresource-dir::
gswapp-webresource-dir:: $(GSWAPP_WEBSERVER_RESOURCE_DIRS)
$(GSWAPP_WEBSERVER_RESOURCE_DIRS):
@$(MKDIRS) $(GSWAPP_WEBSERVER_RESOURCE_DIRS)
gswapp-webresource-files:: $(GSWAPP_DIR_NAME)/WebServerResources gswapp-webresource-dir
@ -251,7 +253,9 @@ gswapp-localized-webresource-files:: $(GSWAPP_DIR_NAME)/WebServerResources gswap
done;\
fi)
gswapp-resource-dir::
gswapp-resource-dir:: $(GSWAPP_RESOURCE_DIRS)
$(GSWAPP_RESOURCE_DIRS):
@$(MKDIRS) $(GSWAPP_RESOURCE_DIRS)
gswapp-resource-files:: $(GSWAPP_DIR_NAME)/Resources/Info-gnustep.plist gswapp-resource-dir

View file

@ -123,11 +123,13 @@ ifeq ($(strip $(LANGUAGES)),)
override LANGUAGES="English"
endif
build-bundle-dir::
@$(MKDIRS) \
$(GSWBUNDLE_DIR_NAME)/Resources \
$(GSWBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR) \
$(GSWBUNDLE_RESOURCE_DIRS)
build-bundle-dir:: $(GSWBUNDLE_DIR_NAME)/Resources $(GSWBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR) $(GSWBUNDLE_RESOURCE_DIRS)
$(GSWBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR):
@$(MKDIRS) $(GSWBUNDLE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)
$(GSWBUNDLE_RESOURCE_DIRS):
@$(MKDIRS) $(GSWBUNDLE_RESOURCE_DIRS)
build-bundle:: $(GSWBUNDLE_FILE) gswbundle-components gswbundle-resource-files localized-gswbundle-resource-files gswbundle-localized-webresource-files gswbundle-webresource-files

View file

@ -109,7 +109,9 @@ after-$(TARGET)-all::
internal-objc_program-install:: internal-objc_program-all internal-install-objc-dirs install-objc_program
internal-install-objc-dirs::
internal-install-objc-dirs:: $(OBJC_PROGRAM_INSTALLATION_DIR)
$(OBJC_PROGRAM_INSTALLATION_DIR):
$(MKDIRS) $(OBJC_PROGRAM_INSTALLATION_DIR)
install-objc_program::

View file

@ -92,11 +92,13 @@ ifeq ($(strip $(RESOURCE_FILES)),)
override RESOURCE_FILES=""
endif
build-palette-dir::
@$(MKDIRS) \
$(PALETTE_DIR_NAME)/Resources \
$(PALETTE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR) \
$(PALETTE_RESOURCE_DIRS)
build-palette-dir::$(PALETTE_DIR_NAME)/Resources $(PALETTE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR) $(PALETTE_RESOURCE_DIRS)
$(PALETTE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR):
$(MKDIRS) $(PALETTE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)
$(PALETTE_RESOURCE_DIRS):
$(MKDIRS) $(PALETTE_RESOURCE_DIRS)
build-palette:: $(PALETTE_FILE) palette-resource-files
@ -153,11 +155,13 @@ $(PALETTE_DIR_NAME)/Resources/palette.table: $(PALETTE_DIR_NAME)/Resources
internal-palette-install:: internal-install-dirs
tar cf - $(PALETTE_DIR_NAME) | (cd $(PALETTE_INSTALL_DIR); tar xf -)
internal-install-dirs::
internal-install-dirs:: $(PALETTE_INSTALL_DIR)
$(PALETTE_INSTALL_DIR):
$(MKDIRS) $(PALETTE_INSTALL_DIR)
$(PALETTE_DIR_NAME)/Resources $(PALETTE_INSTALL_DIR)::
@$(MKDIRS) $@
$(PALETTE_DIR_NAME)/Resources:
$(MKDIRS) $@
internal-palette-uninstall::
rm -rf $(PALETTE_INSTALL_DIR)/$(PALETTE_DIR_NAME)

View file

@ -102,8 +102,10 @@ after-$(TARGET)-all::
$(SERVICE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR):
@$(MKDIRS) $(SERVICE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)
svc-resource-dir::
@$(MKDIRS) $(SERVICE_RESOURCE_DIRS)
svc-resource-dir:: $(SERVICE_RESOURCE_DIRS)
$(SERVICE_RESOURCE_DIRS):
$(MKDIRS) $(SERVICE_RESOURCE_DIRS)
svc-resource-files:: $(SERVICE_DIR_NAME)/Resources/Info-gnustep.plist svc-resource-dir
@(if [ "$(RESOURCE_FILES)" != "" ]; then \