src/Modal/Makefile
author lcp
Tue, 09 Nov 1993 16:32:24 +0100
changeset 102 e04cb6295a3f
parent 60 379872528c16
child 338 e3489bc1f857
permissions -rw-r--r--
Target "test" now depends on examples files
     1 #########################################################################
     2 #									#
     3 # 			Makefile for Isabelle (Modal)			#
     4 #									#
     5 #########################################################################
     6 
     7 #To make the system, cd to this directory and type
     8 #	make -f Makefile 
     9 #To make the system and test it on standard examples, type 
    10 #	make -f Makefile 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 
    16 #Makes LK if this file is ABSENT -- but not 
    17 #if it is out of date, since this Makefile does not know its dependencies!
    18 
    19 BIN = $(ISABELLEBIN)
    20 COMP = $(ISABELLECOMP)
    21 FILES = ROOT.ML modal0.thy prover.ML t.thy s4.thy s43.thy
    22 EX_FILES = ex/ROOT.ML ex/S43thms.ML ex/S4thms.ML ex/Tthms.ML
    23 
    24 #Uses cp rather than make_database because Poly/ML allows only 3 levels
    25 $(BIN)/Modal:   $(BIN)/LK  $(FILES) 
    26 	case "$(COMP)" in \
    27 	poly*)	cp $(BIN)/LK $(BIN)/Modal;\
    28 		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/Modal ;;\
    29 	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/Modal" banner;' | $(BIN)/LK;;\
    30 	*)	echo Bad value for ISABELLECOMP;;\
    31 	esac
    32 
    33 $(BIN)/LK:
    34 	cd ../LK;  $(MAKE)
    35 
    36 test:   ex/ROOT.ML  $(BIN)/Modal  $(EX_FILES)
    37 	case "$(COMP)" in \
    38 	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/Modal ;;\
    39 	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/Modal;;\
    40 	*)	echo Bad value for ISABELLECOMP;;\
    41 	esac
    42 
    43 .PRECIOUS:  $(BIN)/LK $(BIN)/Modal