summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-08 07:05:54 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-08 07:05:54 +0000
commite4cff5985b9c5d1c0d6f647f632f4d6ca92e79ff (patch)
tree001ee4859e5a8bf77379e1ae29186820d59bfcc0 /Makefile
parent2465fa597a1078a9cdfd43c3d734b1cb51ca4c0b (diff)
Added a 'dist' target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b66932c..9776f49 100644
--- a/Makefile
+++ b/Makefile
@@ -36,8 +36,18 @@ chess.dvi: chess-final.texi
$(ENVADD) $(TEXI2DVI) chess-final.texi
clean:
- rm -f $(TARGET) *~ chess.dvi chess.info chess-final.*
+ rm -f *~ chess.dvi chess-final.*
rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
fullclean: clean
- -rm *.elc chess-auto.el
+ -rm $(TARGET) chess.info chess-auto.el
+
+VERSION=$(shell perl -ne 'print $$1 if /chess-version.*"([^"]+)"/;' chess.el)
+
+dist: fullclean all clean
+ cp -ar . /var/tmp/chess-$(VERSION)
+ tar cvjfXC /var/tmp/chess-$(VERSION).tar.bz2 \
+ .exclude /var/tmp chess-$(VERSION)
+ rm -fr /var/tmp/chess-$(VERSION)
+ mv /var/tmp/chess-$(VERSION).tar.bz2 \
+ $(HOME)/public_html/Emacs/packages