src/ZF/Makefile
author lcp
Tue, 09 Nov 1993 16:32:24 +0100
changeset 102 e04cb6295a3f
parent 92 7252e7699e24
child 339 7e67ca1618b7
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 (ZF)			#
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 FOL 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)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
FILES = ROOT.ML zf.thy zf.ML upair.ML subset.ML pair.ML domrange.ML \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
	func.ML simpdata.ML bool.thy bool.ML \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
	sum.thy sum.ML qpair.thy qpair.ML mono.ML fixedpt.thy fixedpt.ML \
92
7252e7699e24 renamed co_inductive.ML to coinductive.ML
clasohm
parents: 90
diff changeset
    24
	ind_syntax.ML intr_elim.ML indrule.ML inductive.ML coinductive.ML \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
	equalities.ML perm.thy perm.ML trancl.thy trancl.ML \
52
d1b8c98e4f81 renamed ordinal.thy to ord.thy
clasohm
parents: 51
diff changeset
    26
	wf.thy wf.ML ord.thy ord.ML nat.thy nat.ML \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
	epsilon.thy epsilon.ML arith.thy arith.ML univ.thy univ.ML \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
	quniv.thy quniv.ML constructor.ML datatype.ML  \
33
ab5ed678130d rename list-fn to listfn
clasohm
parents: 0
diff changeset
    29
	fin.ML list.ML listfn.thy listfn.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    31
EX_FILES = ex/ROOT.ML ex/acc.ML ex/bin.ML ex/binfn.ML ex/binfn.thy\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    32
	   ex/bt.ML ex/bt_fn.ML ex/bt_fn.thy ex/comb.ML\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    33
	   ex/contract0.ML ex/contract0.thy ex/counit.ML ex/data.ML\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    34
	   ex/enum.ML ex/equiv.ML ex/equiv.thy ex/integ.ML ex/integ.thy\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    35
	   ex/listn.ML ex/llist.ML ex/llist_eq.ML ex/llistfn.ML ex/llistfn.thy\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    36
	   ex/misc.ML ex/parcontract.ML ex/primrec0.ML ex/primrec0.thy\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    37
	   ex/prop.ML ex/proplog.ML ex/proplog.thy ex/ramsey.ML ex/ramsey.thy\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    38
	   ex/rmap.ML ex/term.ML ex/termfn.ML ex/termfn.thy ex/tf.ML\
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    39
	   ex/tf_fn.ML ex/tf_fn.thy ex/twos_compl.ML
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    40
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
$(BIN)/ZF:   $(BIN)/FOL  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
	poly*)	cp $(BIN)/FOL $(BIN)/ZF;\
82
b9ac34abc054 no longer specifies "-h 15000". Instead $ISABELLECOMP should
lcp
parents: 75
diff changeset
    45
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/ZF ;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/ZF" banner;' | $(BIN)/FOL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
$(BIN)/FOL:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
	cd ../FOL;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    53
test:   ex/ROOT.ML  $(BIN)/ZF  $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
	case "$(COMP)" in \
82
b9ac34abc054 no longer specifies "-h 15000". Instead $ISABELLECOMP should
lcp
parents: 75
diff changeset
    55
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/ZF ;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/ZF;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
.PRECIOUS:  $(BIN)/FOL $(BIN)/ZF