[complement-svn] SF.net SVN: complement: [1800] trunk/complement/explore/Makefiles
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-12-21 16:58:39
|
Revision: 1800 http://complement.svn.sourceforge.net/complement/?rev=1800&view=rev Author: complement Date: 2007-12-21 08:58:36 -0800 (Fri, 21 Dec 2007) Log Message: ----------- allow strip application after install with tags install-strip and install-stripe-shared; use option for strip for install-strip-shared too. Modified Paths: -------------- trunk/complement/explore/Makefiles/ChangeLog trunk/complement/explore/Makefiles/gmake/app/rules-install.mak trunk/complement/explore/Makefiles/gmake/linux/sys.mak Modified: trunk/complement/explore/Makefiles/ChangeLog =================================================================== --- trunk/complement/explore/Makefiles/ChangeLog 2007-12-17 15:13:51 UTC (rev 1799) +++ trunk/complement/explore/Makefiles/ChangeLog 2007-12-21 16:58:36 UTC (rev 1800) @@ -1,3 +1,10 @@ +2007-12-21 Petr Ovtchenkov <pt...@is...> + + * gmake/app/rules-install.mak: allow strip application after install + with tags install-strip and install-stripe-shared; + + * gmake/linux/sys.mak: use option for strip for install-strip-shared too. + 2007-12-12 Petr Ovtchenkov <pt...@is...> * gmake/unix/rules-install-so.mak: install-headers usable; it use Modified: trunk/complement/explore/Makefiles/gmake/app/rules-install.mak =================================================================== --- trunk/complement/explore/Makefiles/gmake/app/rules-install.mak 2007-12-17 15:13:51 UTC (rev 1799) +++ trunk/complement/explore/Makefiles/gmake/app/rules-install.mak 2007-12-21 16:58:36 UTC (rev 1800) @@ -1,4 +1,4 @@ -# -*- makefile -*- Time-stamp: <06/12/12 09:37:04 ptr> +# -*- makefile -*- Time-stamp: <07/12/21 18:39:57 yeti> # # Copyright (c) 1997-1999, 2002, 2003, 2005, 2006 # Petr Ovtchenkov @@ -33,6 +33,14 @@ endif endef +define prog_strip_install +${STRIP} ${_INSTALL_STRIP_OPTION} $$(INSTALL_BIN_DIR)/$${INSTALL_$(1)_PRGNAME}; +endef + +ifndef INSTALL_STRIP_TAGS +INSTALL_STRIP_TAGS := install-strip-shared +endif + INSTALL_PRGNAME := ${PRGNAME}${EXE} $(foreach prg,$(PRGNAMES),$(eval $(call prog_install,$(prg)))) @@ -49,6 +57,17 @@ $(INSTALL_PRGNAME_CMD) $(POST_INSTALL) +install-strip: ${INSTALL_STRIP_TAGS} $(INSTALL_BIN_DIR) + +install-strip-shared: release-shared $(INSTALL_BIN_DIR) +ifdef PRGNAME + $(INSTALL_EXE) ${PRG} $(INSTALL_BIN_DIR)/${INSTALL_PRGNAME} + ${STRIP} ${_INSTALL_STRIP_OPTION} $(INSTALL_BIN_DIR)/${INSTALL_PRGNAME} +endif + $(INSTALL_PRGNAME_CMD) + $(foreach prg,$(PRGNAMES),$(eval $(call prog_strip_install,$(prg)))) + $(POST_INSTALL) + install-dbg-shared: dbg-shared $(INSTALL_BIN_DIR_DBG) ifdef PRGNAME $(INSTALL_EXE) ${PRG_DBG} $(INSTALL_BIN_DIR_DBG)/${INSTALL_PRGNAME_DBG} @@ -64,3 +83,5 @@ $(INSTALL_PRGNAME_CMD_STLDBG) $(POST_INSTALL_STLDBG) endif + +PHONY += install-strip install-strip-shared \ No newline at end of file Modified: trunk/complement/explore/Makefiles/gmake/linux/sys.mak =================================================================== --- trunk/complement/explore/Makefiles/gmake/linux/sys.mak 2007-12-17 15:13:51 UTC (rev 1799) +++ trunk/complement/explore/Makefiles/gmake/linux/sys.mak 2007-12-21 16:58:36 UTC (rev 1800) @@ -1,4 +1,4 @@ -# Time-stamp: <06/11/10 23:43:27 ptr> +# Time-stamp: <07/12/21 18:40:54 yeti> # # Copyright (c) 1997-1999, 2002, 2003, 2005-2007 # Petr Ovtchenkov @@ -17,6 +17,10 @@ install-strip: _SO_STRIP_OPTION = -S +install-strip-shared: _INSTALL_STRIP_OPTION = -s + +install-strip-shared: _SO_STRIP_OPTION = -S + INSTALL_SO := ${INSTALL} -c -m 0755 ${_INSTALL_STRIP_OPTION} INSTALL_A := ${INSTALL} -c -m 0644 INSTALL_EXE := ${INSTALL} -c -m 0755 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |