Skip to content

Commit

Permalink
Implemented strip=yes
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@11751 72102866-910b-0410-8b05-ffd578937521
  • Loading branch information
Nicola Pero committed Dec 14, 2001
1 parent 31ad6eb commit c9c86c1
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
Fri Dec 14 12:32:45 2001 Nicola Pero <n.pero@mi.flashnet.it>

* palette.make (internal-palette-install): If CHOWN_TO is
defined, chown the installed dir.

Fri Dec 14 12:22:44 2001 Nicola Pero <n.pero@mi.flashnet.it>

Implemented strip=yes.
* config.make.in (STRIP): New variable.
* rules.make (INSTALL_PROGRAM): Add -s if strip=yes.
(strip): Export if defined to be yes.
* application.make (internal-app-install): Strip the installed
executable if strip=yes.
* bundle.make (internal-bundle-install): Idem.
* framework.make (internal-framework-install): Idem.
* gswapp.make (internal-gswapp-install): Idem.
* gswbundle.make (internal-bundle-install): Idem.
* palette.make (internal-palette-install): Idem.
* service.make (internal-service-install): Idem.

Thu Dec 13 12:27:18 2001 Nicola Pero <n.pero@mi.flashnet.it>

* java-tool.make
Expand Down
3 changes: 3 additions & 0 deletions application.make
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ internal-app-install:: $(GNUSTEP_APPS)
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(GNUSTEP_APPS)/$(APP_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(GNUSTEP_APPS)/$(APP_FILE)
endif


$(GNUSTEP_APPS):
Expand Down
3 changes: 3 additions & 0 deletions bundle.make
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ endif
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(BUNDLE_INSTALL_DIR)/$(BUNDLE_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(BUNDLE_INSTALL_DIR)/$(BUNDLE_FILE)
endif

$(BUNDLE_DIR_NAME)/Resources:
$(MKDIRS) $@
Expand Down
1 change: 1 addition & 0 deletions config.make.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ INSTALL_DATA = @INSTALL_DATA@
TAR = @TAR@
MKDIRS = $(GNUSTEP_MAKEFILES)/mkinstalldirs
CHOWN = chown
STRIP = strip

# The default library combination
default_library_combo = @ac_cv_library_combo@
Expand Down
6 changes: 6 additions & 0 deletions framework.make
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ internal-framework-install:: $(FRAMEWORK_INSTALL_DIR) \
$(TAR) cf - $(FRAMEWORK_DIR_NAME) | (cd $(FRAMEWORK_INSTALL_DIR); $(TAR) xf -)
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(FRAMEWORK_INSTALL_DIR)/$(FRAMEWORK_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(FRAMEWORK_INSTALL_DIR)/$(FRAMEWORK_FILE)
endif
@(cd $(GNUSTEP_FRAMEWORKS_HEADERS); \
if [ "$(HEADER_FILES)" != "" ]; then \
Expand Down Expand Up @@ -495,6 +498,9 @@ internal-framework-install:: $(FRAMEWORK_INSTALL_DIR) \
$(TAR) cf - $(FRAMEWORK_DIR_NAME) | (cd $(FRAMEWORK_INSTALL_DIR); $(TAR) xf -)
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(FRAMEWORK_INSTALL_DIR)/$(FRAMEWORK_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(FRAMEWORK_INSTALL_DIR)/$(FRAMEWORK_FILE)
endif
(cd $(GNUSTEP_FRAMEWORKS_HEADERS); \
if [ "$(HEADER_FILES)" != "" ]; then \
Expand Down
3 changes: 3 additions & 0 deletions gswapp.make
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ internal-gswapp-install::
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(GNUSTEP_GSWAPPS)/$(GSWAPP_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(GNUSTEP_GSWAPPS)/$(GSWAPP_FILE)
endif

internal-gswapp-uninstall::
(cd $(GNUSTEP_GSWAPPS); rm -rf $(GSWAPP_DIR_NAME))
Expand Down
3 changes: 3 additions & 0 deletions gswbundle.make
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ endif
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(GSWBUNDLE_INSTALL_DIR)/$(GSWBUNDLE_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(GSWBUNDLE_INSTALL_DIR)/$(GSWBUNDLE_FILE)
endif

$(GSWBUNDLE_INSTALL_DIR)::
@$(MKINSTALLDIRS) $@
Expand Down
6 changes: 6 additions & 0 deletions palette.make
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ $(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 -)
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(PALETTE_INSTALL_DIR)/$(PALETTE_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(PALETTE_INSTALL_DIR)/$(PALETTE_FILE)
endif

internal-install-dirs:: $(PALETTE_INSTALL_DIR)

Expand Down
8 changes: 8 additions & 0 deletions rules.make
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ $(GNUSTEP_MAKEFILES)/$(GNUSTEP_TARGET_DIR)/config.make: ;

$(GNUSTEP_MAKEFILES)/Additional/*.make: ;

#
# Manage stripping
#
ifeq ($(strip),yes)
INSTALL_PROGRAM += -s
export strip
endif

#
# Prepare the arguments to install to set user/group of installed files
#
Expand Down
3 changes: 3 additions & 0 deletions service.make
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ internal-service-install:: $(GNUSTEP_SERVICES)
ifneq ($(CHOWN_TO),)
$(CHOWN) -R $(CHOWN_TO) $(GNUSTEP_SERVICES)/$(SERVICE_DIR_NAME)
endif
ifeq ($(strip),yes)
$(STRIP) $(GNUSTEP_SERVICES)/$(SERVICE_FILE)
endif

internal-service-uninstall::
(cd $(GNUSTEP_SERVICES); rm -rf $(SERVICE_DIR_NAME))
Expand Down

0 comments on commit c9c86c1

Please sign in to comment.