summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)