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
clasohm@0
     1
#########################################################################
clasohm@0
     2
#									#
clasohm@0
     3
# 			Makefile for Isabelle (FOL)			#
clasohm@0
     4
#									#
clasohm@0
     5
#########################################################################
clasohm@0
     6
clasohm@0
     7
#To make the system, cd to this directory and type  
clasohm@0
     8
#	make -f Makefile 
clasohm@0
     9
#To make the system and test it on standard examples, type  
clasohm@0
    10
#	make -f Makefile test
clasohm@0
    11
clasohm@0
    12
#Environment variable ISABELLECOMP specifies the compiler.
clasohm@0
    13
#Environment variable ISABELLEBIN specifies the destination directory.
clasohm@0
    14
#For Poly/ML, ISABELLEBIN must begin with a /
clasohm@0
    15
clasohm@0
    16
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
clasohm@0
    17
#if it is out of date, since this Makefile does not know its dependencies!
clasohm@0
    18
clasohm@0
    19
BIN = $(ISABELLEBIN)
clasohm@0
    20
COMP = $(ISABELLECOMP)
clasohm@336
    21
FILES =  ROOT.ML IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \
clasohm@0
    22
	../Provers/classical.ML ../Provers/simplifier.ML ../Provers/ind.ML
clasohm@0
    23
clasohm@336
    24
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
clasohm@336
    25
	   ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\
clasohm@336
    26
	   ex/Nat2.ML ex/Nat2.thy ex/Prolog.ML ex/Prolog.thy ex/prop.ML\
lcp@101
    27
	   ex/quant.ML
lcp@101
    28
clasohm@0
    29
$(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
lcp@409
    30
	if [ -d $${ISABELLEBIN:?}/Pure ];\
lcp@409
    31
           	then echo Bad value for ISABELLEBIN: \
lcp@409
    32
                	$(BIN) is the Isabelle source directory; \
lcp@409
    33
                	exit 1; \
lcp@409
    34
           	fi;\
clasohm@0
    35
	case "$(COMP)" in \
clasohm@0
    36
	poly*)	echo 'make_database"$(BIN)/FOL"; quit();'  \
clasohm@0
    37
			| $(COMP) $(BIN)/Pure;\
clasohm@0
    38
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/FOL;;\
clasohm@0
    39
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\
lcp@409
    40
	*)	echo Bad value for ISABELLECOMP: \
lcp@409
    41
                	$(COMP) is not poly or sml;;\
clasohm@0
    42
	esac
clasohm@0
    43
clasohm@0
    44
$(BIN)/Pure:
clasohm@0
    45
	cd ../Pure;  $(MAKE)
clasohm@0
    46
lcp@101
    47
test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
clasohm@0
    48
	case "$(COMP)" in \
clasohm@0
    49
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\
clasohm@0
    50
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/FOL;;\
lcp@409
    51
	*)	echo Bad value for ISABELLECOMP: \
lcp@409
    52
                	$(COMP) is not poly or sml;;\
clasohm@0
    53
	esac
clasohm@0
    54
clasohm@0
    55
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL