From e4cff5985b9c5d1c0d6f647f632f4d6ca92e79ff Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 8 Apr 2002 07:05:54 +0000 Subject: Added a 'dist' target --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3