src/FOL/Makefile
author lcp
Tue Mar 07 13:15:25 1995 +0100 (1995-03-07)
changeset 928 cb31a4e97f75
parent 409 54fcef4db0db
child 940 bd9ab32bfa30
permissions -rw-r--r--
Moved declaration of ~= to a syntax section
     1 #########################################################################
     2 #									#
     3 # 			Makefile for Isabelle (FOL)			#
     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 pure Isabelle (Pure) 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 IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \
    22 	../Provers/classical.ML ../Provers/simplifier.ML ../Provers/ind.ML
    23 
    24 EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
    25 	   ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\
    26 	   ex/Nat2.ML ex/Nat2.thy ex/Prolog.ML ex/Prolog.thy ex/prop.ML\
    27 	   ex/quant.ML
    28 
    29 $(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
    30 	if [ -d $${ISABELLEBIN:?}/Pure ];\
    31            	then echo Bad value for ISABELLEBIN: \
    32                 	$(BIN) is the Isabelle source directory; \
    33                 	exit 1; \
    34            	fi;\
    35 	case "$(COMP)" in \
    36 	poly*)	echo 'make_database"$(BIN)/FOL"; quit();'  \
    37 			| $(COMP) $(BIN)/Pure;\
    38 		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/FOL;;\
    39 	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\
    40 	*)	echo Bad value for ISABELLECOMP: \
    41                 	$(COMP) is not poly or sml;;\
    42 	esac
    43 
    44 $(BIN)/Pure:
    45 	cd ../Pure;  $(MAKE)
    46 
    47 test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
    48 	case "$(COMP)" in \
    49 	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\
    50 	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/FOL;;\
    51 	*)	echo Bad value for ISABELLECOMP: \
    52                 	$(COMP) is not poly or sml;;\
    53 	esac
    54 
    55 .PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL