summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-31 06:47:40 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-31 06:47:40 +0000
commit41941be87707824d8562ae7f91c351da1ac8a5cd (patch)
tree59c9cde7d22491ffd48aeb5d54d12ef27b891c49 /Makefile
parent7d821a88a34d72b6d2335901443e0dc54f290689 (diff)
downloadanaconda-41941be87707824d8562ae7f91c351da1ac8a5cd.tar.gz
anaconda-41941be87707824d8562ae7f91c351da1ac8a5cd.tar.xz
anaconda-41941be87707824d8562ae7f91c351da1ac8a5cd.zip
add build and snapbuild targets, use with 'make COLLECTION=foo (snapbuild|build)' just like with pkgs cvs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index acd9d41f3..2a9755281 100644
--- a/Makefile
+++ b/Makefile
@@ -87,6 +87,7 @@ install:
for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
CVSTAG=anaconda-$(subst .,_,$(VERSION)-$(RELEASE))
+SRPMDIR=$(shell rpm --eval '%{_srcrpmdir}')
tag:
@cvs tag -cR $(CVSTAG)
@echo "Tagged as $(CVSTAG)"
@@ -99,6 +100,12 @@ src: create-archive
snapsrc: create-snapshot
@rpmbuild -ts --nodeps anaconda-$(VERSION).tar.bz2
+build: src
+ bhc $(COLLECTION) $(SRPMDIR)/anaconda-$(VERSION)-$(RELEASE).src.rpm
+
+snapbuild: snapsrc
+ bhc $(COLLECTION) $(SRPMDIR)/anaconda-$(VERSION)-$(SNAPRELEASE).src.rpm
+
create-snapshot:
@rm -rf /tmp/anaconda
@rm -rf /tmp/anaconda-$(VERSION)