chiark / gitweb /
Add `-jameson' option.
[rocl] / Makefile
index 83c19774af9344ee53e0722a4479d4db4e3c207e..90d0ca0be172e29d7a7dabe73a93d64e4191c2b4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
 # Makefile for RIGHT ON COMMAND-LINE
+#
+# $Id: Makefile,v 1.4 2003/03/01 17:47:07 mdw Exp $
 
 #----- Configuration stuff --------------------------------------------------
 
@@ -26,11 +28,11 @@ RM = rm
 # Shouldn't need to fiddle with thiis stuff.
 
 PACKAGE = rocl
-VERSION = 1.0.0
+VERSION = 1.0.1
 
 TCLSCRIPTS = \
        elite-editor elite-pairs elite-path elite-find elite-map \
-       elite-prices elite-describe elite-reach
+       elite-prices elite-describe elite-reach elite-cmdr
 
 all: elite.so pkgIndex.tcl
 
@@ -52,15 +54,33 @@ clean:
        $(RM) -f elite.o elite.so pkgIndex.tcl
 
 DISTDIR = $(PACKAGE)-$(VERSION)
-DISTFILES = README Makefile elite.c elite.def $(TCLSCRIPTS)
+DISTFILES = README Makefile elite.c elite.tcl elite.def $(TCLSCRIPTS)
 distdir: $(DISTFILES)
        $(RM) -rf $(DISTDIR)
        mkdir $(DISTDIR)
        for i in $(DISTFILES); do ln -s ../$$i $(DISTDIR); done
-dist: distdir
+disttar: distdir
        tar chofz $(DISTDIR).tar.gz $(DISTDIR)
+distzip: distdir
+       cd $(DISTDIR) && zip -rq ../$(DISTDIR).zip .
+dist: disttar distzip
        $(RM) -rf $(DISTDIR)
-
-.PHONY: all install clean dist distdir
+distcheck: dist
+       @echo "*** Packing..."
+       $(MAKE) dist
+       @echo "*** Unpacking..."
+       tar xfz $(DISTDIR).tar.gz
+       @echo "*** Test building..."
+       set -e; \
+       cd $(DISTDIR); \
+       $(MAKE) clean; \
+       $(MAKE); \
+       $(MAKE) install INST=inst; \
+       $(MAKE) dist
+       @echo "*** Tidying up..."
+       rm -rf $(DISTDIR)
+       @echo "*** All OK"
+
+.PHONY: all install clean dist disttar distzip distdir distcheck
 
 #----- That's all, folks ----------------------------------------------------