src/FOL/Makefile
author lcp
Tue, 09 Nov 1993 16:09:34 +0100
changeset 101 d4730dd72226
parent 97 dd350da66c2c
child 336 5170a992ad48
permissions -rw-r--r--
Target "test" now depends on examples 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)
97
dd350da66c2c renamed int-prover.ML to intprover.ML,
clasohm
parents: 0
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
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    24
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/if.ML ex/if.thy ex/int.ML\
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    25
	   ex/intro.ML ex/list.ML ex/list.thy ex/nat.ML ex/nat.thy\
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 97
diff changeset
    26
	   ex/nat2.ML ex/nat2.thy ex/prolog.ML ex/prolog.thy ex/prop.ML\
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