summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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