This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 01/15] Add Makefile rule to rename build products to form used when uploading
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 16 May 2017 12:48:46 +0100
- Subject: [PATCH setup 01/15] Add Makefile rule to rename build products to form used when uploading
- Authentication-results: sourceware.org; auth=none
- References: <20170516114900.168120-1-jon.turney@dronecode.org.uk>
---
Makefile.am | 5 +++++
configure.ac | 3 +++
2 files changed, 8 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index a947a78..7d5e1e3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -273,6 +273,7 @@ inilint_SOURCES = \
GITVER := $(shell cd $(srcdir) && git describe --match release_\* --abbrev=6 --dirty || "N/A")
VER := $(subst release_,,$(GITVER))
+ARCH := @ARCH@
setup_version.c : Makefile
@echo "Setup version: " $(VER)
@@ -307,3 +308,7 @@ upx: strip
else \
echo "UPX doesn't seem to be installed, cannot compress setup$(EXEEXT)." ;\
fi
+
+release: upx
+ cp setup.dbg setup-${VER}.${ARCH}.dbg
+ cp setup${EXEEXT} setup-${VER}.${ARCH}${EXEEXT}
diff --git a/configure.ac b/configure.ac
index 42ad3e2..ab548c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,15 +74,18 @@ dnl add portability sources to inilint
case "$host" in
i?86-*-mingw32)
SETUP="setup"
+ ARCH="x86"
;;
x86_64-*-mingw32)
SETUP="setup"
+ ARCH="x86_64"
;;
*)
AC_MSG_ERROR([Cygwin Setup can only be built for Win32 or Win64 hosts])
;;
esac
AC_SUBST(SETUP)
+AC_SUBST(ARCH)
AC_CONFIG_FILES([Makefile tests/Makefile])
AC_OUTPUT
--
2.12.3