summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a289046..efa00cd 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@ fullclean: clean
VERSION=$(shell perl -ne 'print $$1 if /chess-version.*"([^"]+)"/;' chess.el)
dist: fullclean all clean
+ -rm *~ .*~
cp -ar . /var/tmp/chess-$(VERSION)
tar cvjfXC /var/tmp/chess-$(VERSION).tar.bz2 \
.exclude /var/tmp chess-$(VERSION)
@@ -57,9 +58,7 @@ CAT=$(shell echo $(VERSION) | perl -ne 'print $$1 if /[-0-9]+([ab])[0-9]+/;')
SUB=$(shell echo $(VERSION) | perl -ne 'print $$1 if /[-0-9]+[ab]([0-9]+)/;')
NEXT=$(shell expr $(SUB) + 1)
-update: dist
- sitecopy
- make fullclean
+update: dist fullclean
cvs tag chess-$(TAG)
- perl -i -ne 's/(chess-version.*)"([0-9.]+)[ab][0-9]+"/$$1"$$2$(CAT)$(NEXT)"/;' chess.el
+ perl -i -pe 's/(chess-version.*)"([0-9.]+)[ab][0-9]+"/$$1"$$2$(CAT)$(NEXT)"/;' chess.el
cvs commit -m "bumped minor rev" chess.el