[PATCH] build: fix the "make rpm" rules

Jim Meyering jim at meyering.net
Mon Sep 19 13:49:35 UTC 2011


Before, "make clean && make rpm" would fail.
This fixes it:

>From 5b6585d668c8eba50b6c451b14c3a6fed066dbbb Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Mon, 19 Sep 2011 15:48:24 +0200
Subject: [PATCH] build: fix the "make rpm" rules

* Makefile.am (rpm): Build "all" before "dist".
Otherwise, "make rpm" would fail if certain normally-built
files were not present.  Reported by James Laska.
---
 Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 22c096f..7cf2e54 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -85,6 +85,7 @@ iwhd.spec: iwhd.spec.in Makefile
 rpm:
 	$(MAKE) clean
 	$(MAKE) _version
+	umask 022; $(MAKE) LDFLAGS='-Wl,--build-id'
 	umask 022; $(MAKE) LDFLAGS='-Wl,--build-id' dist
 	umask 022; export LDFLAGS='-Wl,--build-id';		\
 	case $(VERSION) in					\
--
1.7.7.rc0.362.g5a14


More information about the iwhd-devel mailing list