src/Cube/Makefile
author clasohm
Thu Sep 16 12:20:38 1993 +0200 (1993-09-16)
changeset 0 a5a9c433f639
child 101 d4730dd72226
permissions -rw-r--r--
Initial revision
     1 #########################################################################
     2 #									#
     3 # 			Makefile for Isabelle (Cube)			#
     4 #									#
     5 #########################################################################
     6 
     7 #To make the system, cd to this directory and type  
     8 #	make 
     9 #To make the system and test it on standard examples, type  
    10 #	make test
    11 
    12 #Environment variable ISABELLECOMP specifies the compiler.
    13 #Environment variable ISABELLEBIN specifies the destination directory.
    14 #For Poly/ML, ISABELLEBIN must begin with a /
    15 #WARNING: Poly/ML databases may fail if copied or moved!
    16 
    17 #Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
    18 #if it is out of date, since this Makefile does not know its dependencies!
    19 
    20 BIN = $(ISABELLEBIN)
    21 COMP = $(ISABELLECOMP)
    22 FILES = 	ROOT.ML  cube.thy  cube.ML  ex.ML
    23 
    24 $(BIN)/Cube:   $(BIN)/Pure  $(FILES) 
    25 	case "$(COMP)" in \
    26 	poly*)	echo 'make_database"$(BIN)/Cube"; quit();'  \
    27 			| $(COMP) $(BIN)/Pure;\
    28 		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/Cube ;;\
    29 	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/Cube" banner;' | $(BIN)/Pure ;;\
    30 	*)	echo Bad value for ISABELLECOMP;;\
    31 	esac
    32 
    33 $(BIN)/Pure:
    34 	cd ../Pure;  $(MAKE)
    35 
    36 test:   ex.ML $(BIN)/Cube
    37 	case "$(COMP)" in \
    38 	poly*)	echo 'use"ex.ML"; quit();' | $(COMP) $(BIN)/Cube ;;\
    39 	sml*)	echo 'use"ex.ML";' | $(BIN)/Cube;;\
    40 	*)	echo Bad value for ISABELLECOMP;;\
    41 	esac
    42 
    43 .PRECIOUS:  $(BIN)/Pure  $(BIN)/Cube