summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 2 insertions, 29 deletions
diff --git a/Makefile b/Makefile
index ba6e62fc..36d3dd0c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
PACKAGE = mdkonline
-VERSION:=$(shell rpm -q --qf '%{VERSION}\n' --specfile $(PACKAGE).spec|head -n 1)
-RELEASE:=$(shell rpm -q --qf '%{RELEASE}\n' --specfile $(PACKAGE).spec|head -n 1)
-TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
+VERSION:=2.4
SVNROOT = svn+ssh://svn.mandriva.com/svn/soft/$(PACKAGE)
NAME = mdkonline
@@ -52,18 +50,9 @@ install: all
# rules to build a test rpm
-localrpm: clean localdist buildrpm
-
-localsrpm: clean localdist buildsrpm
-
-localdist: cleandist dir localcopy tar
-
cleandist:
rm -rf $(PACKAGE)-$(VERSION) ../$(PACKAGE)-$(VERSION).tar.bz2
-dir:
- mkdir $(PACKAGE)-$(VERSION)
-
localcopy: clean
find . -not -name "$(PACKAGE)-$(VERSION)" -a -not -name '*.bz2'|cpio -pd $(PACKAGE)-$(VERSION)/
find $(PACKAGE)-$(VERSION) -type d -name CVS|xargs rm -rf
@@ -73,25 +62,9 @@ tar:
bzip2 -9vf ../$(PACKAGE)-$(VERSION).tar
rm -rf $(PACKAGE)-$(VERSION)
-buildrpm:
- rpm -ta ../$(PACKAGE)-$(VERSION).tar.bz2
- rm -f ../$(PACKAGE)-$(VERSION).tar.bz2
-
-buildsrpm:
- rpm -ts ../$(PACKAGE)-$(VERSION).tar.bz2
- rm -f ../$(PACKAGE)-$(VERSION).tar.bz2
-
# rules to build a distributable rpm
-rpm: changelog svntag dist buildrpm
-
-dist: cleandist export tar
-
-export:
- svn export $(SVNROOT)/tags/$(TAG) $(PACKAGE)-$(VERSION)
-
-svntag:
- svn copy $(SVNROOT)/trunk $(SVNROOT)/tags/$(TAG) -m "$(TAG)"
+dist: cleandist localcopy tar
log:changelog