aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile22
1 files changed, 7 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 04dd701..2bfccfc 100644
--- a/Makefile
+++ b/Makefile
@@ -43,38 +43,30 @@ install:
install -d $(DESTDIR)/etc/dbus-1/system.d
install -m 644 s2u.conf $(DESTDIR)/etc/dbus-1/system.d
-# rules to build a test rpm
-checktag:
- @if [ "x$(VERSION)" == "x" -o "x$(RELEASE)" = "x" ]; then \
- echo usage is "make VERSION=version_number RELEASE=release_number dist" ; \
- exit 1 ; \
- fi
-
-
localdist: cleandist dir localcopy tar
-cleandist: checktag
+cleandist:
rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
-dir: checktag
+dir:
mkdir $(PACKAGE)-$(VERSION)
-localcopy: checktag
+localcopy:
tar c $(FILES) | tar x -C $(PACKAGE)-$(VERSION)
-tar: checktag
+tar:
tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION)
bzip2 -9vf $(PACKAGE)-$(VERSION).tar
rm -rf $(PACKAGE)-$(VERSION)
# rules to build a distributable rpm
-dist: checktag cleandist svntag export tar
+dist: cleandist svntag export tar
-export: checktag
+export:
svn export $(SVNROOT)/tags/$(TAG) $(PACKAGE)-$(VERSION)
-svntag: checktag
+svntag:
svn copy $(SVNROOT)/trunk $(SVNROOT)/tags/$(TAG) -m "$(TAG)"
changelog: ../common/username