X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/rocl/blobdiff_plain/ef7a35ca362e47f37aa15c4d164241f84fe538d9..74bdd262742db2f0b2b97375ece36f2962bfeb52:/Makefile diff --git a/Makefile b/Makefile index bdcb3e1..de93b6f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Makefile for RIGHT ON COMMAND-LINE # -# $Id: Makefile,v 1.9 2003/03/07 20:04:21 mdw Exp $ +# $Id$ #----- Configuration stuff -------------------------------------------------- @@ -30,11 +30,12 @@ RM = rm # Shouldn't need to fiddle with thiis stuff. PACKAGE = rocl -VERSION = 1.1.1 +VERSION = 1.1.5 TCLSCRIPTS = \ elite-editor elite-pairs elite-path elite-find elite-map \ - elite-prices elite-describe elite-reach elite-cmdr elite-salesman + elite-prices elite-describe elite-reach elite-cmdr elite-salesman \ + elite-tantalus SRCFILES = elite.c vec.c vec.h graph.c @@ -65,15 +66,27 @@ clean: $(RM) -f *.o *.so pkgIndex.tcl DISTDIR = $(PACKAGE)-$(VERSION) -DISTFILES = README Makefile $(SRCFILES) elite.tcl elite.def $(TCLSCRIPTS) +DISTFILES = \ + README Makefile $(SRCFILES) elite.tcl steele.cmdr \ + elite.def vec.def graph.def $(TCLSCRIPTS) \ + debian/rules debian/control debian/copyright debian/changelog distdir: $(DISTFILES) $(RM) -rf $(DISTDIR) - mkdir $(DISTDIR) - for i in $(DISTFILES); do ln -s ../$$i $(DISTDIR); done + mkdir $(DISTDIR) $(DISTDIR)/debian + for i in $(DISTFILES); do \ + case $$i in \ + */*) \ + dir=$${i%/*}; \ + up=`echo $$dir | sed 's:[^/]\+:..:g'`; \ + mkdir -p $(DISTDIR)/$$dir;; \ + *) dir= up=;; \ + esac; \ + ln -s ../$$up/$$i $(DISTDIR)/$$i; \ + done disttar: distdir - tar chofz $(DISTDIR).tar.gz $(DISTDIR) + tar chofz $(INST)$(DISTDIR).tar.gz $(DISTDIR) distzip: distdir - cd $(DISTDIR) && zip -rq ../$(DISTDIR).zip . + cd $(DISTDIR) && zip -rq ../$(INST)$(DISTDIR).zip . dist: disttar distzip $(RM) -rf $(DISTDIR) distcheck: dist