Code

[PATCH] Add a RPMBUILD make variable
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 15 Jul 2005 01:20:25 +0000 (19:20 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 15 Jul 2005 18:38:24 +0000 (11:38 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Makefile

index 4bc3665f2d1970cbbdfeece53e7346bd79b8536c..34a54a8633eb8d20b8f0b51c1683474f3655381e 100644 (file)
--- 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
@@ -186,7 +187,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