mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
Added new variable FINAL_LIBRARY_INSTALL_DIR - use it everywhere
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@11220 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ea95d35f1b
commit
7c19e38d38
1 changed files with 13 additions and 8 deletions
21
library.make
21
library.make
|
@ -108,6 +108,11 @@ ifeq ($(LIBRARY_INSTALL_DIR),)
|
|||
LIBRARY_INSTALL_DIR = $(GNUSTEP_LIBRARIES)
|
||||
endif
|
||||
|
||||
# And this is used internally - it is the final directory where we put the
|
||||
# library - it includes target arch, os dir and library_combo - this variable
|
||||
# is PRIVATE to gnustep-make
|
||||
FINAL_LIBRARY_INSTALL_DIR = $(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)
|
||||
|
||||
ifeq ($(shared), yes)
|
||||
|
||||
ifneq ($(BUILD_DLL),yes)
|
||||
|
@ -222,14 +227,14 @@ internal-library-install:: internal-install-dirs \
|
|||
internal-install-headers
|
||||
|
||||
# Depend on creating all the dirs
|
||||
internal-install-dirs:: $(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR) \
|
||||
internal-install-dirs:: $(FINAL_LIBRARY_INSTALL_DIR) \
|
||||
$(GNUSTEP_HEADERS)/$(HEADER_FILES_INSTALL_DIR) \
|
||||
$(DLL_INSTALLATION_DIR) \
|
||||
$(ADDITIONAL_INSTALL_DIRS)
|
||||
|
||||
# Now the rule to create each dir. NB: Nothing gets executed if the dir
|
||||
# already exists
|
||||
$(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR):
|
||||
$(FINAL_LIBRARY_INSTALL_DIR):
|
||||
$(MKDIRS) $@
|
||||
|
||||
$(GNUSTEP_HEADERS)/$(HEADER_FILES_INSTALL_DIR):
|
||||
|
@ -261,7 +266,7 @@ internal-install-lib::
|
|||
fi
|
||||
if [ -f $(GNUSTEP_OBJ_DIR)/$(DLL_EXP_LIB) ]; then \
|
||||
$(INSTALL_PROGRAM) $(GNUSTEP_OBJ_DIR)/$(DLL_EXP_LIB) \
|
||||
$(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR) ; \
|
||||
$(FINAL_LIBRARY_INSTALL_DIR) ; \
|
||||
fi
|
||||
|
||||
else
|
||||
|
@ -269,7 +274,7 @@ else
|
|||
internal-install-lib::
|
||||
if [ -f $(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE) ]; then \
|
||||
$(INSTALL_PROGRAM) $(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE) \
|
||||
$(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR) ; \
|
||||
$(FINAL_LIBRARY_INSTALL_DIR) ; \
|
||||
$(AFTER_INSTALL_LIBRARY_CMD) \
|
||||
fi
|
||||
|
||||
|
@ -289,14 +294,14 @@ ifeq ($(BUILD_DLL),yes)
|
|||
|
||||
internal-uninstall-lib::
|
||||
rm -f $(DLL_INSTALLATION_DIR)/$(DLL_NAME) \
|
||||
$(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)/$(DLL_EXP_LIB)
|
||||
$(FINAL_LIBRARY_INSTALL_DIR)/$(DLL_EXP_LIB)
|
||||
|
||||
else
|
||||
|
||||
internal-uninstall-lib::
|
||||
rm -f $(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)/$(VERSION_LIBRARY_FILE) \
|
||||
$(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)/$(LIBRARY_FILE) \
|
||||
$(LIBRARY_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)/$(SONAME_LIBRARY_FILE)
|
||||
rm -f $(FINAL_LIBRARY_INSTALL_DIR)/$(VERSION_LIBRARY_FILE) \
|
||||
$(FINAL_LIBRARY_INSTALL_DIR)/$(LIBRARY_FILE) \
|
||||
$(FINAL_LIBRARY_INSTALL_DIR)/$(SONAME_LIBRARY_FILE)
|
||||
endif
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue