From 068cc32d78c26372bed383f1fbb7c4851e10166d Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Mon, 2 Aug 2010 16:30:43 -0500 Subject: 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 --- Makefile.am | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit