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-03 16:08:19 -0500
commit3690c3fd455efc3d1e3bc512f151b128000d1951 (patch)
tree097de8f59b2b8d168316b352aa075cfaadce8088
parentaa9a4ea2a62d608019ad5ccdea69b426041352aa (diff)
downloadmock-3690c3fd455efc3d1e3bc512f151b128000d1951.tar.gz
mock-3690c3fd455efc3d1e3bc512f151b128000d1951.tar.xz
mock-3690c3fd455efc3d1e3bc512f151b128000d1951.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 a26be37..2de1ae5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -92,11 +92,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