src/ZF/Makefile
author clasohm
Thu, 16 Sep 1993 12:20:38 +0200
changeset 0 a5a9c433f639
child 33 ab5ed678130d
permissions -rw-r--r--
Initial revision
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 \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
	ind-syntax.ML intr-elim.ML indrule.ML inductive.ML co-inductive.ML \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
	equalities.ML perm.thy perm.ML trancl.thy trancl.ML \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
	wf.thy wf.ML ordinal.thy ordinal.ML nat.thy nat.ML \
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  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
	fin.ML list.ML list-fn.thy list-fn.ML
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
$(BIN)/ZF:   $(BIN)/FOL  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
	poly*)	cp $(BIN)/FOL $(BIN)/ZF;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/ZF ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/ZF" banner;' | $(BIN)/FOL;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
	*)	echo Bad value for ISABELLECOMP;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
$(BIN)/FOL:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
	cd ../FOL;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
test:   ex/ROOT.ML  $(BIN)/ZF
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/ZF ;;\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/ZF;;\
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
.PRECIOUS:  $(BIN)/FOL $(BIN)/ZF