src/ZF/Makefile
author lcp
Wed, 07 Sep 1994 17:28:53 +0200
changeset 589 31847a7504ec
parent 578 efc648d29dd0
child 700 31f50c1778ef
permissions -rw-r--r--
addition of ZF/ex/twos_compl.thy
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)
530
2eb142800801 ZF/Makefile/FILES: added many missing .thy files
lcp
parents: 516
diff changeset
    21
FILES = ROOT.ML ZF.thy ZF.ML upair.thy upair.ML subset.thy subset.ML \
2eb142800801 ZF/Makefile/FILES: added many missing .thy files
lcp
parents: 516
diff changeset
    22
	pair.thy pair.ML domrange.thy domrange.ML \
2eb142800801 ZF/Makefile/FILES: added many missing .thy files
lcp
parents: 516
diff changeset
    23
	func.thy func.ML AC.thy AC.ML simpdata.thy simpdata.ML\
2eb142800801 ZF/Makefile/FILES: added many missing .thy files
lcp
parents: 516
diff changeset
    24
	equalities.thy equalities.ML Bool.thy Bool.ML \
342
82104a03565a renamed theory files
clasohm
parents: 339
diff changeset
    25
	Sum.thy Sum.ML QPair.thy QPair.ML mono.ML Fixedpt.thy Fixedpt.ML \
578
efc648d29dd0 ZF/Inductive.thy,.ML: renamed from "inductive" to allow re-building without
lcp
parents: 531
diff changeset
    26
	../Pure/section_utils.ML ind_syntax.thy ind_syntax.ML \
efc648d29dd0 ZF/Inductive.thy,.ML: renamed from "inductive" to allow re-building without
lcp
parents: 531
diff changeset
    27
         add_ind_def.thy add_ind_def.ML \
531
e24f47f8938e ZF/Makefile,ROOT.ML, ZF/ex/Integ.thy: updated for EquivClass
lcp
parents: 530
diff changeset
    28
	intr_elim.thy intr_elim.ML indrule.thy indrule.ML \
578
efc648d29dd0 ZF/Inductive.thy,.ML: renamed from "inductive" to allow re-building without
lcp
parents: 531
diff changeset
    29
	Inductive.thy Inductive.ML \
531
e24f47f8938e ZF/Makefile,ROOT.ML, ZF/ex/Integ.thy: updated for EquivClass
lcp
parents: 530
diff changeset
    30
	Perm.thy Perm.ML Rel.thy Rel.ML EquivClass.ML EquivClass.thy \
e24f47f8938e ZF/Makefile,ROOT.ML, ZF/ex/Integ.thy: updated for EquivClass
lcp
parents: 530
diff changeset
    31
	Trancl.thy Trancl.ML \
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    32
	WF.thy WF.ML Order.thy Order.ML Ordinal.thy Ordinal.ML \
488
52f7447d4f1b Addition of infinite branching datatypes
lcp
parents: 484
diff changeset
    33
	Epsilon.thy Epsilon.ML Arith.thy Arith.ML Univ.thy Univ.ML \
52f7447d4f1b Addition of infinite branching datatypes
lcp
parents: 484
diff changeset
    34
	QUniv.thy QUniv.ML constructor.ML Datatype.thy Datatype.ML  \
467
92868dab2939 new cardinal arithmetic developments
lcp
parents: 435
diff changeset
    35
	OrderArith.thy OrderArith.ML OrderType.thy OrderType.ML \
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    36
	Cardinal.thy Cardinal.ML CardinalArith.thy CardinalArith.ML \
488
52f7447d4f1b Addition of infinite branching datatypes
lcp
parents: 484
diff changeset
    37
	Cardinal_AC.thy Cardinal_AC.ML InfDatatype.thy InfDatatype.ML \
516
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    38
	Zorn.thy Zorn.ML Nat.thy Nat.ML Finite.thy Finite.ML \
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    39
	List.thy List.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
516
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    41
IMP_FILES = IMP/ROOT.ML IMP/Com.ML IMP/Com.thy IMP/Denotation.ML\
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    42
            IMP/Denotation.thy IMP/Equiv.ML IMP/Equiv.thy
483
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    43
516
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    44
EX_FILES = ex/ROOT.ML ex/misc.ML ex/Ramsey.ML ex/Ramsey.thy\
531
e24f47f8938e ZF/Makefile,ROOT.ML, ZF/ex/Integ.thy: updated for EquivClass
lcp
parents: 530
diff changeset
    45
	   ex/Integ.ML ex/Integ.thy\
589
31847a7504ec addition of ZF/ex/twos_compl.thy
lcp
parents: 578
diff changeset
    46
           ex/twos_compl.thy ex/twos_compl.ML ex/Bin.thy ex/Bin.ML\
516
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    47
	   ex/BT.thy ex/BT.ML ex/Term.thy ex/Term.ML \
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    48
	   ex/TF.thy ex/TF.ML ex/Ntree.thy ex/Ntree.ML \
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    49
           ex/Brouwer.thy ex/Brouwer.ML \
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    50
	   ex/Data.thy ex/Data.ML ex/Enum.thy ex/Enum.ML \
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    51
	   ex/Rmap.thy ex/Rmap.ML ex/PropLog.ML ex/PropLog.thy \
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    52
	   ex/ListN.thy ex/ListN.ML ex/Acc.thy ex/Acc.ML\
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    53
	   ex/Comb.thy ex/Comb.ML ex/Primrec.thy ex/Primrec.ML\
1957113f0d7d installation of new inductive/datatype sections
lcp
parents: 488
diff changeset
    54
           ex/LList.thy ex/LList.ML ex/CoUnit.thy ex/CoUnit.ML
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 92
diff changeset
    55
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
$(BIN)/ZF:   $(BIN)/FOL  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
	poly*)	cp $(BIN)/FOL $(BIN)/ZF;\
82
b9ac34abc054 no longer specifies "-h 15000". Instead $ISABELLECOMP should
lcp
parents: 75
diff changeset
    60
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/ZF ;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/ZF" banner;' | $(BIN)/FOL;;\
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    62
	*)	echo Bad value for ISABELLECOMP: \
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    63
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    66
$(BIN)/FOL:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    67
	cd ../FOL;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
488
52f7447d4f1b Addition of infinite branching datatypes
lcp
parents: 484
diff changeset
    69
#Directory IMP also tests the system
52f7447d4f1b Addition of infinite branching datatypes
lcp
parents: 484
diff changeset
    70
#Load ex/ROOT.ML last since it creates the file "test"
52f7447d4f1b Addition of infinite branching datatypes
lcp
parents: 484
diff changeset
    71
test:   $(BIN)/ZF  $(IMP_FILES) $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    72
	case "$(COMP)" in \
483
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    73
	poly*)	echo 'use"IMP/ROOT.ML"; use"ex/ROOT.ML"; quit();' | \
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    74
			$(COMP) $(BIN)/ZF ;;\
4d1614d8f119 added IMP
nipkow
parents: 467
diff changeset
    75
	sml*)	echo 'use"IMP/ROOT.ML"; use"ex/ROOT.ML";' | $(BIN)/ZF;;\
435
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    76
	*)	echo Bad value for ISABELLECOMP: \
ca5356bd315a Addition of cardinals and order types, various tidying
lcp
parents: 363
diff changeset
    77
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    78
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    79
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    80
.PRECIOUS:  $(BIN)/FOL $(BIN)/ZF