From 7e19431abe4429d64c13a4e778c6521b1d18a8cd Mon Sep 17 00:00:00 2001 From: Jeff Moyer Date: Thu, 26 Feb 2004 15:25:10 +0000 Subject: rpm building has been moved to rpmbuild. fallback to rpm if rpmbuild is not present --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 868de0a..53f9bd0 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ SPECFILE=$(NAME).spec VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE)) RELEASE=$(shell awk '/Release:/ { print $$2 }' $(SPECFILE)) CVSTAG = $(NAME)_$(subst .,-,$(VERSION))_$(subst .,-,$(RELEASE)) -RPM=rpm +RPMBUILD=$(shell `which rpmbuild >&/dev/null` && echo "rpmbuild" || echo "rpm") prefix=/usr includedir=$(prefix)/include @@ -39,4 +39,4 @@ create-archive: tag-archive archive: clean tag-archive create-archive srpm: create-archive - $(RPM) --define "_sourcedir `pwd`" --define "_srcrpmdir `pwd`" --nodeps -bs $(SPECFILE) + $(RPMBUILD) --define "_sourcedir `pwd`" --define "_srcrpmdir `pwd`" --nodeps -bs $(SPECFILE) -- cgit v1.2.1