src/FOL/Makefile
author clasohm
Fri, 22 Apr 1994 20:41:28 +0200
changeset 336 5170a992ad48
parent 101 d4730dd72226
child 409 54fcef4db0db
permissions -rw-r--r--
renamed theory files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
# 			Makefile for Isabelle (FOL)			#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
#To make the system, cd to this directory and type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#	make -f Makefile 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
#To make the system and test it on standard examples, type  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#	make -f Makefile test
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#if it is out of date, since this Makefile does not know its dependencies!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
COMP = $(ISABELLECOMP)
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    21
FILES =  ROOT.ML IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
	../Provers/classical.ML ../Provers/simplifier.ML ../Provers/ind.ML
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
336
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    24
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    25
	   ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\
5170a992ad48 renamed theory files
clasohm
parents: 101
diff changeset
    26
	   ex/Nat2.ML ex/Nat2.thy ex/Prolog.ML ex/Prolog.thy ex/prop.ML\
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    27
	   ex/quant.ML
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    28
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
$(BIN)/FOL:   $(BIN)/Pure  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
	poly*)	echo 'make_database"$(BIN)/FOL"; quit();'  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
			| $(COMP) $(BIN)/Pure;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/FOL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
$(BIN)/Pure:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
	cd ../Pure;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    41
test:   ex/ROOT.ML  $(BIN)/FOL  $(EX_FILES) 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/FOL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOL