[Gpg4win-commits] r21 - in trunk: . src
marcus at wald.intevation.org
marcus at wald.intevation.org
Thu Oct 20 18:01:39 CEST 2005
Author: marcus
Date: 2005-10-20 18:01:39 +0200 (Thu, 20 Oct 2005)
New Revision: 21
Modified:
trunk/ChangeLog
trunk/src/gpg4win.mk.in
Log:
2005-10-20 Marcus Brinkmann <marcus at g10code.de>
* src/gpg4win.mk.in (GETVAR): Don't quote the first $.
(STRIP_macro): New macro.
(SPKG, BPKG): Use it here.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2005-10-20 13:57:20 UTC (rev 20)
+++ trunk/ChangeLog 2005-10-20 16:01:39 UTC (rev 21)
@@ -1,5 +1,9 @@
2005-10-20 Marcus Brinkmann <marcus at g10code.de>
+ * src/gpg4win.mk.in (GETVAR): Don't quote the first $.
+ (STRIP_macro): New macro.
+ (SPKG, BPKG): Use it here.
+
* Makefile.am (EXTRA_DIST): New target.
* include/Makefile.am (EXTRA_DIST): Change config.nsh.in to
config.nsi.in.
Modified: trunk/src/gpg4win.mk.in
===================================================================
--- trunk/src/gpg4win.mk.in 2005-10-20 13:57:20 UTC (rev 20)
+++ trunk/src/gpg4win.mk.in 2005-10-20 16:01:39 UTC (rev 21)
@@ -47,7 +47,7 @@
# Get the variable $(1) (which may contain '-' and '+' characters).
define GETVAR
-$$($(call FROB_macro,$(1)))
+$($(call FROB_macro,$(1)))
endef
# Set a couple of common variables.
@@ -75,11 +75,22 @@
*.tar.bz2 | *.tbz2 | *.tbz) \
$(TAR) xjf "$(1)" ;; \
*.zip) \
- $(UNZIP) "$(1)" ;; \
+ $(UNZIP) "$(1)" ;; \
esac
endef
+# Support macro. Strip all dll and exe files below $(1).
+define STRIP_macro
+ if test -z "$(DEBUG)"; then \
+ (cd $(1); \
+ for f in `find . -name \*.dll \
+ -o -name \*.exe`; do \
+ echo Calling $(STRIP) "$$$${pkg_version}/$$$${f}"; \
+ $(STRIP) "$$$${f}"; done); \
+ fi
+endef
+
# Template for source packages.
define SPKG_template
@@ -118,7 +129,8 @@
stamps/stamp-$(1)-04-install: stamps/stamp-$(1)-03-make
($(call SETVARS,$(1)); \
cd "$$$${pkgbdir}"; \
- $(MAKE) $(AM_MAKEFLAGS) install)
+ $(MAKE) $(AM_MAKEFLAGS) install; \
+ $(call STRIP_macro,"$$$${pkgidir}"))
touch stamps/stamp-$(1)-04-install
stamps/stamp-$(1)-05-stow: stamps/stamp-$(1)-04-install
@@ -140,14 +152,18 @@
($(call SETVARS,$(1)); \
$(MKDIR) "$$$${pkgidir}"; \
cd $$$${pkgidir}; \
- $(call DEFLATE_macro,$$$${pkg}))
+ $(call DEFLATE_macro,$$$${pkg}); \
+ $(call STRIP_macro,"$$$${pkgidir}"))
touch stamps/stamp-$(1)-00-install
+# Note that post_install must come last because it may be empty and
+# "; ;" is a syntax error.
stamps/stamp-$(1)-01-install-dev: stamps/stamp-$(1)-00-install
($(call SETVARS,$(1)); \
$(MKDIR) "$$$${pkgidir_dev}"; \
cd $$$${pkgidir_dev}; \
$(call DEFLATE_macro,$$$${pkg_dev}); \
+ $(call STRIP_macro,"$$$${pkgidir_dev}"); \
$(call gpg4win_pkg_$(call FROB_macro,$(1))_post_install))
touch stamps/stamp-$(1)-01-install-dev
More information about the Gpg4win-commits
mailing list