diff options
author | Jeff Moyer <jmoyer@redhat.com> | 2004-02-26 15:25:10 +0000 |
---|---|---|
committer | Jeff Moyer <jmoyer@redhat.com> | 2004-02-26 15:25:10 +0000 |
commit | 7e19431abe4429d64c13a4e778c6521b1d18a8cd (patch) | |
tree | 3eef5095c66d0fbfdcd0aae7d393bc638fd9d88f | |
parent | 72dbddab6bee0379fe272a9cb3e386666f7cbad5 (diff) | |
download | libaio-7e19431abe4429d64c13a4e778c6521b1d18a8cd.tar.gz |
rpm building has been moved to rpmbuild. fallback to rpm if rpmbuild is not present
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |