diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-12-31 06:47:40 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-12-31 06:47:40 +0000 |
commit | 41941be87707824d8562ae7f91c351da1ac8a5cd (patch) | |
tree | 59c9cde7d22491ffd48aeb5d54d12ef27b891c49 /Makefile | |
parent | 7d821a88a34d72b6d2335901443e0dc54f290689 (diff) | |
download | anaconda-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-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |