summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPhilip Knirsch <pknirsch@hamburg.stuttgart.redhat.com>2009-02-25 18:23:15 +0100
committerPhilip Knirsch <pknirsch@hamburg.stuttgart.redhat.com>2009-02-25 18:23:15 +0100
commit2f9173b101917db44503436f213988248447409e (patch)
treedb83b1e8cb3bc71cac68ddc3e4789020833625da /Makefile
parentfd0d01812c480c1a439041ba68265d04ec866bef (diff)
downloadtuned-2f9173b101917db44503436f213988248447409e.tar.gz
tuned-2f9173b101917db44503436f213988248447409e.tar.xz
tuned-2f9173b101917db44503436f213988248447409e.zip
- Added a distarchive target for the Makefile for proper tagging in git
- Added a explanation how to create the tarball via git in the specfile - Fixed the defattr() lines in the specfile to conform FRG
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6646f42..8788a76 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ VERSIONED_NAME = $(NAME)-$(VERSION)
DESTDIR = /
MANDIR = /usr/share/man/
-GITTAG = r$(subst .,-,$(VERSION))
+GITTAG = v$(VERSION)
DIRS = doc contrib tuningplugins monitorplugins
FILES = tuned tuned.spec Makefile tuned.py tuned.initscript tuned.conf
@@ -15,6 +15,8 @@ FILES_tuningplugins = tuningplugins/disk.py tuningplugins/net.py tuningplugins/_
FILES_monitorplugins = monitorplugins/disk.py monitorplugins/net.py monitorplugins/__init__.py
DOCS = AUTHORS ChangeLog COPYING INSTALL NEWS README
+distarchive: tag archive
+
archive:
rm -rf $(VERSIONED_NAME)
mkdir -p $(VERSIONED_NAME)
@@ -32,7 +34,8 @@ archive:
ln -fs $(VERSIONED_NAME).tar.bz2 latest-archive
tag:
- git tag $(GITTAG)
+ git tag -f $(GITTAG)
+ git push --tags
srpm: archive
rm -rf rpm-build-dir