commit 40ead3a858ba1e03280038e7a55afc8f43f045b8
Author: Jim Meyering <meyering(a)redhat.com>
Date: Wed Jun 8 18:18:39 2011 +0200
build: fix "make rpm" to work more reliably
* Makefile.am (rpm): Set LDFLAGS to add --build-id.
Otherwise, "make rpm" fails with a "No build ID note found in
..."
diagnostic for each of the dc-*-image programs.
Also make _version, to be sure to increment version number.
Makefile.am | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1b6b5f8..dd80d97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -79,8 +79,11 @@ iwhd.spec: iwhd.spec.in Makefile
# like "0.0.273-1621" that contain a "-". Repack the tarball
# to one with "." substituted for any - in the version string.
.PHONY: rpm
-rpm: dist iwhd.spec
- chmod 644 $(distdir).tar.gz
+rpm:
+ $(MAKE) clean
+ $(MAKE) _version
+ umask 022; $(MAKE) LDFLAGS='-Wl,--build-id' dist
+ umask 022; export LDFLAGS='-Wl,--build-id'; \
case $(VERSION) in \
*-*) \
v=$$(echo $(VERSION)|tr - .); \
Show replies by date