threads / patch / 1250

patchAdd a RPMBUILD make variable

Subject: [PATCH] Add a RPMBUILD make variable

## tl;dr

One message between Jul 15, 2005 and Jul 15, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Eric W. Biederman· Jul 15, 2005, 01:20 UTC · lore

This allows RPMBUILD to be overridden for people with old versions of rpm or people who want to pass rpmbuild extra options.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
50c6a0b3b5d461b81bd5ceb0808206bfa20a8bfa
Show changes to Makefile +2 −1
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ bin=$(prefix)/bin
 CC=gcc
 AR=ar
 INSTALL=install
+RPMBUILD=rpmbuild
 
 #
 # sparse is architecture-neutral, which means that we need to tell it
@@ -185,7 +186,7 @@ dist: git-core.spec git-tar-tree
 	gzip -9 $(GIT_TARNAME).tar
 
 rpm: dist
-	rpmbuild -ta git-core-$(GIT_VERSION).tar.gz
+	$(RPMBUILD) -ta git-core-$(GIT_VERSION).tar.gz
 
 test: all
 	$(MAKE) -C t/ all

← back to recent threads