mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
Use Shared/bundle.make to install and uninstall
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@17823 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
af323958db
commit
e04590e0a5
2 changed files with 20 additions and 33 deletions
|
@ -58,8 +58,13 @@ endif
|
|||
PALETTE_DIR_NAME = $(GNUSTEP_INSTANCE).palette
|
||||
PALETTE_FILE = $(PALETTE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)/$(PALETTE_NAME)
|
||||
|
||||
# Copy any resources into $(PALETTE_DIR_NAME)/Resources
|
||||
ifeq ($(PALETTE_INSTALL_DIR),)
|
||||
PALETTE_INSTALL_DIR = $(GNUSTEP_PALETTES)
|
||||
endif
|
||||
|
||||
GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH = $(PALETTE_DIR_NAME)/Resources
|
||||
GNUSTEP_SHARED_BUNDLE_MAIN_PATH = $(PALETTE_DIR_NAME)
|
||||
GNUSTEP_SHARED_BUNDLE_INSTALL_DIR = $(PALETTE_INSTALL_DIR)
|
||||
include $(GNUSTEP_MAKEFILES)/Instance/Shared/bundle.make
|
||||
|
||||
internal-palette-all_:: $(GNUSTEP_OBJ_DIR) \
|
||||
|
@ -91,11 +96,6 @@ ifeq ($(PALETTE_ICON),)
|
|||
PALETTE_ICON = $(GNUSTEP_INSTANCE)
|
||||
endif
|
||||
|
||||
ifeq ($(PALETTE_INSTALL_DIR),)
|
||||
PALETTE_INSTALL_DIR = $(GNUSTEP_PALETTES)
|
||||
endif
|
||||
|
||||
|
||||
$(PALETTE_DIR_NAME)/Resources/Info-gnustep.plist: $(PALETTE_DIR_NAME)/Resources
|
||||
$(ECHO_CREATING)(echo "{"; echo ' NOTE = "Automatically generated, do not edit!";'; \
|
||||
echo " NSExecutable = \"$(GNUSTEP_INSTANCE)\";"; \
|
||||
|
@ -119,22 +119,16 @@ $(PALETTE_DIR_NAME)/Resources/palette.table: $(PALETTE_DIR_NAME)/Resources
|
|||
#
|
||||
# Install, clean targets
|
||||
#
|
||||
$(PALETTE_INSTALL_DIR):
|
||||
$(ECHO_CREATING)$(MKINSTALLDIRS) $@$(END_ECHO)
|
||||
|
||||
internal-palette-install_:: $(PALETTE_INSTALL_DIR)
|
||||
$(ECHO_INSTALLING)tar cf - $(PALETTE_DIR_NAME) \
|
||||
| (cd $(PALETTE_INSTALL_DIR); tar xf -)$(END_ECHO)
|
||||
ifneq ($(CHOWN_TO),)
|
||||
$(ECHO_CHOWNING)$(CHOWN) -R $(CHOWN_TO) $(PALETTE_INSTALL_DIR)/$(PALETTE_DIR_NAME)$(END_ECHO)
|
||||
endif
|
||||
internal-palette-install_:: shared-instance-bundle-install
|
||||
ifeq ($(strip),yes)
|
||||
$(ECHO_STRIPPING)$(STRIP) $(PALETTE_INSTALL_DIR)/$(PALETTE_FILE)$(END_ECHO)
|
||||
endif
|
||||
|
||||
$(PALETTE_INSTALL_DIR):
|
||||
$(ECHO_CREATING)$(MKINSTALLDIRS) $(PALETTE_INSTALL_DIR)$(END_ECHO)
|
||||
internal-palette-uninstall_:: shared-instance-bundle-uninstall
|
||||
|
||||
internal-palette-uninstall_::
|
||||
$(ECHO_NOTHING)rm -rf $(PALETTE_INSTALL_DIR)/$(PALETTE_DIR_NAME)$(END_ECHO)
|
||||
|
||||
internal-palette-distclean::
|
||||
$(ECHO_NOTHING)rm -rf shared_obj static_obj shared_debug_obj shared_profile_obj \
|
||||
|
|
|
@ -60,13 +60,15 @@ SERVICE_DIR_NAME = $(GNUSTEP_INSTANCE:=.service)
|
|||
#
|
||||
SERVICE_FILE = $(SERVICE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)/$(GNUSTEP_INSTANCE)
|
||||
|
||||
# Copy any resources into $(SERVICE_DIR_NAME)/Resources
|
||||
ifeq ($(SERVICE_INSTALL_DIR),)
|
||||
SERVICE_INSTALL_DIR = $(GNUSTEP_SERVICES)
|
||||
endif
|
||||
|
||||
GNUSTEP_SHARED_BUNDLE_RESOURCE_PATH = $(SERVICE_DIR_NAME)/Resources
|
||||
GNUSTEP_SHARED_BUNDLE_MAIN_PATH = $(SERVICE_DIR_NAME)
|
||||
GNUSTEP_SHARED_BUNDLE_INSTALL_DIR = $(SERVICE_INSTALL_DIR)
|
||||
include $(GNUSTEP_MAKEFILES)/Instance/Shared/bundle.make
|
||||
|
||||
#
|
||||
# Compilation targets
|
||||
#
|
||||
internal-service-all_:: $(GNUSTEP_OBJ_DIR) \
|
||||
$(SERVICE_DIR_NAME)/$(GNUSTEP_TARGET_LDIR) \
|
||||
$(SERVICE_FILE) \
|
||||
|
@ -98,24 +100,15 @@ $(SERVICE_DIR_NAME)/Resources/Info-gnustep.plist: \
|
|||
#
|
||||
# Install targets
|
||||
#
|
||||
|
||||
$(GNUSTEP_SERVICES):
|
||||
$(SERVICE_INSTALL_DIR):
|
||||
$(ECHO_CREATING)$(MKINSTALLDIRS) $@$(END_ECHO)
|
||||
|
||||
internal-service-install_:: $(GNUSTEP_SERVICES)
|
||||
$(ECHO_INSTALLING)rm -rf $(GNUSTEP_SERVICES)/$(SERVICE_DIR_NAME); \
|
||||
$(TAR) cf - $(SERVICE_DIR_NAME) \
|
||||
| (cd $(GNUSTEP_SERVICES); $(TAR) xf -)$(END_ECHO)
|
||||
ifneq ($(CHOWN_TO),)
|
||||
$(ECHO_CHOWNING)$(CHOWN) -R $(CHOWN_TO) $(GNUSTEP_SERVICES)/$(SERVICE_DIR_NAME)$(END_ECHO)
|
||||
endif
|
||||
internal-service-install_:: shared-instance-bundle-install
|
||||
ifeq ($(strip),yes)
|
||||
$(ECHO_STRIPPING)$(STRIP) $(GNUSTEP_SERVICES)/$(SERVICE_FILE)$(END_ECHO)
|
||||
$(ECHO_STRIPPING)$(STRIP) $(SERVICE_INSTALL_DIR)/$(SERVICE_FILE)$(END_ECHO)
|
||||
endif
|
||||
|
||||
internal-service-uninstall_::
|
||||
$(ECHO_UNINSTALLING)cd $(GNUSTEP_SERVICES); rm -rf $(SERVICE_DIR_NAME)$(END_ECHO)
|
||||
|
||||
internal-service-uninstall_:: shared-instance-bundle-uninstall
|
||||
|
||||
#
|
||||
# Cleaning targets
|
||||
|
|
Loading…
Reference in a new issue