summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-08-02 16:30:43 -0500
committerClark Williams <williams@redhat.com>2010-08-02 16:30:43 -0500
commit068cc32d78c26372bed383f1fbb7c4851e10166d (patch)
tree434f6c471363c2df88ea11161b0e6baf4cd945d5
parentdcf501d3adbbb36450454485eb12dda70cd7b7c6 (diff)
downloadmock-068cc32d78c26372bed383f1fbb7c4851e10166d.tar.gz
mock-068cc32d78c26372bed383f1fbb7c4851e10166d.tar.xz
mock-068cc32d78c26372bed383f1fbb7c4851e10166d.zip
Modified Makefile.am to conditionally set RPMBUILD macro
If /usr/bin/rpmbuild-md5 exists, then use it, otherwise use rpmbuild. This helps when testing older distro configs such as for el4 and el5 Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--Makefile.am6
1 files changed, 1 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index b9ef2fa..cbba3a1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -99,11 +99,7 @@ RPM_DEFINES = --define "_topdir $(TOPDIR)" \
--define "_specdir $(SPECDIR)" \
--define "_srcrpmdir $(SRCRPMDIR)"
-if USE_MD5
-RPMBUILD := rpmbuild-md5
-else
-RPMBUILD := rpmbuild
-endif
+RPMBUILD := $(shell if [ -e /usr/bin/rpmbuild-md5 ]; then echo rpmbuild-md5; else echo rpmbuild; fi)
.PHONY: rpm srpm help
rpm: dist