summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f7cdb0d..026b181 100644
--- a/Makefile
+++ b/Makefile
@@ -27,10 +27,14 @@ install: all
clean:
$(RM) $(TARGETS)
-qarsh.tar.bz2: qarsh.spec
+VERSION := $(shell awk '/^Version:/ { print $$2 }' qarsh.spec)
+qarsh-$(VERSION).tar.bz2: qarsh.spec
+ -rm $@
tar cjf $@ .
-rpm: qarsh.tar.bz2 qarsh.spec
+tarball: qarsh-$(VERSION).tar.bz2
+
+rpm: qarsh-$(VERSION).tar.bz2 qarsh.spec
rpmbuild -ta $<
# Redefine the default compile rule to include target specific parts