mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Added .PHONY, removed useless install target, reorganized install ifeqs
for readability git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@10349 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7116837f2b
commit
fd84a45e93
1 changed files with 15 additions and 13 deletions
28
ctool.make
28
ctool.make
|
@ -60,6 +60,15 @@ $(CTOOL_NAME):
|
|||
|
||||
else
|
||||
|
||||
.PHONY: internal-ctool-all \
|
||||
internal-ctool-clean \
|
||||
internal-ctool-distclean \
|
||||
internal-ctool-install \
|
||||
internal-ctool-uninstall \
|
||||
before-$(TARGET)-all \
|
||||
after-$(TARGET)-all \
|
||||
install-ctool
|
||||
|
||||
ALL_TOOL_LIBS = $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) \
|
||||
$(TARGET_SYSTEM_LIBS)
|
||||
|
||||
|
@ -105,26 +114,19 @@ before-$(TARGET)-all::
|
|||
|
||||
after-$(TARGET)-all::
|
||||
|
||||
internal-ctool-install:: internal-install-dirs install-ctool
|
||||
internal-ctool-install:: $(CTOOL_INSTALLATION_DIR) install-ctool
|
||||
|
||||
$(CTOOL_INSTALLATION_DIR):
|
||||
$(MKDIRS) $(CTOOL_INSTALLATION_DIR)
|
||||
|
||||
internal-install-dirs:: $(CTOOL_INSTALLATION_DIR)
|
||||
|
||||
install-ctool::
|
||||
$(INSTALL_PROGRAM) -m 0755 \
|
||||
$(GNUSTEP_OBJ_DIR)/$(INTERNAL_ctool_NAME)$(EXEEXT) \
|
||||
$(CTOOL_INSTALLATION_DIR)
|
||||
ifeq ($(GNUSTEP_FLATTENED),)
|
||||
install-ctool::
|
||||
$(INSTALL_PROGRAM) -m 0755 \
|
||||
$(GNUSTEP_OBJ_DIR)/$(INTERNAL_ctool_NAME)$(EXEEXT) \
|
||||
$(CTOOL_INSTALLATION_DIR);
|
||||
cp $(GNUSTEP_MAKEFILES)/executable.template \
|
||||
$(GNUSTEP_INSTALLATION_DIR)/Tools/$(INTERNAL_ctool_NAME)
|
||||
$(GNUSTEP_INSTALLATION_DIR)/Tools/$(INTERNAL_ctool_NAME); \
|
||||
chmod a+x $(GNUSTEP_INSTALLATION_DIR)/Tools/$(INTERNAL_ctool_NAME)
|
||||
else
|
||||
install-ctool::
|
||||
$(INSTALL_PROGRAM) -m 0755 \
|
||||
$(GNUSTEP_OBJ_DIR)/$(INTERNAL_ctool_NAME)$(EXEEXT) \
|
||||
$(CTOOL_INSTALLATION_DIR);
|
||||
endif
|
||||
|
||||
internal-ctool-uninstall::
|
||||
|
|
Loading…
Reference in a new issue