mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-29 16:31:13 +00:00
Make ADDITIONAL_INSTALL_DIRS a globally available feature
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@17610 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1a6204e703
commit
f062fbb75d
2 changed files with 12 additions and 7 deletions
|
@ -230,8 +230,7 @@ internal-library-install_:: internal-install-dirs \
|
|||
|
||||
# Depend on creating all the dirs
|
||||
internal-install-dirs:: $(FINAL_LIBRARY_INSTALL_DIR) \
|
||||
$(DLL_INSTALLATION_DIR) \
|
||||
$(ADDITIONAL_INSTALL_DIRS)
|
||||
$(DLL_INSTALLATION_DIR)
|
||||
|
||||
# Now the rule to create each dir. NB: Nothing gets executed if the dir
|
||||
# already exists
|
||||
|
@ -241,10 +240,6 @@ $(FINAL_LIBRARY_INSTALL_DIR):
|
|||
$(DLL_INSTALLATION_DIR):
|
||||
$(ECHO_CREATING)$(MKINSTALLDIRS) $@$(END_ECHO)
|
||||
|
||||
$(ADDITIONAL_INSTALL_DIRS):
|
||||
$(ECHO_CREATING)$(MKINSTALLDIRS) $@$(END_ECHO)
|
||||
|
||||
|
||||
ifeq ($(BUILD_DLL),yes)
|
||||
|
||||
internal-install-lib::
|
||||
|
|
|
@ -123,10 +123,20 @@ internal-$(GNUSTEP_TYPE)-uninstall:: before-$(GNUSTEP_INSTANCE)-uninstall \
|
|||
|
||||
else
|
||||
|
||||
internal-$(GNUSTEP_TYPE)-install:: before-$(GNUSTEP_INSTANCE)-install \
|
||||
# By adding an ADDITIONAL_INSTALL_DIRS variable (or xxx_INSTALL_DIRS)
|
||||
# you can request additional installation directories to be created
|
||||
# before the first installation target is executed.
|
||||
ADDITIONAL_INSTALL_DIRS += $($(GNUSTEP_INSTANCE)_INSTALL_DIRS)
|
||||
|
||||
$(ADDITIONAL_INSTALL_DIRS):
|
||||
$(ECHO_CREATING)$(MKINSTALLDIRS) $@$(END_ECHO)
|
||||
|
||||
internal-$(GNUSTEP_TYPE)-install:: $(ADDITIONAL_INSTALL_DIRS) \
|
||||
before-$(GNUSTEP_INSTANCE)-install \
|
||||
internal-$(GNUSTEP_TYPE)-install_ \
|
||||
after-$(GNUSTEP_INSTANCE)-install
|
||||
|
||||
# It would be nice to remove ADDITIONAL_INSTALL_DIRS here, if empty.
|
||||
internal-$(GNUSTEP_TYPE)-uninstall:: before-$(GNUSTEP_INSTANCE)-uninstall \
|
||||
internal-$(GNUSTEP_TYPE)-uninstall_ \
|
||||
after-$(GNUSTEP_INSTANCE)-uninstall
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue