src/HOL/Makefile
author nipkow
Thu, 16 Nov 1995 19:50:40 +0100
changeset 1334 32a9fde85699
parent 1329 8987c0df4b2f
child 1336 38d66830a046
permissions -rw-r--r--
added rev_contrapos
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
     1
# $Id$
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     2
#########################################################################
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     3
#									#
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
     4
# 			Makefile for Isabelle (HOL)			#
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     5
#									#
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     6
#########################################################################
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     7
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
     8
#To make the system, cd to this directory and type  
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
     9
#	make
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    10
#To make the system and test it on standard examples, type  
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    11
#	make test
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    12
#To generate HTML files for every theory, set the environment variable
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    13
#MAKE_HTML or add the parameter "MAKE_HTML=".
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    14
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    15
#Environment variable ISABELLECOMP specifies the compiler.
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    16
#Environment variable ISABELLEBIN specifies the destination directory.
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    17
#For Poly/ML, ISABELLEBIN must begin with a /
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    18
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    19
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not 
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    20
#if it is out of date, since this Makefile does not know its dependencies!
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    21
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    22
BIN = $(ISABELLEBIN)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    23
COMP = $(ISABELLECOMP)
1129
866fff857626 Moved Relation from Integ to main HOL.
nipkow
parents: 1125
diff changeset
    24
NAMES = HOL Ord Set Fun subset equalities Prod Relation Trancl Sum WF \
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    25
       mono Lfp Gfp Nat Inductive Finite Arith Sexp Univ List 
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    26
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    27
FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    28
	ind_syntax.ML indrule.ML intr_elim.ML simpdata.ML\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    29
	subtype.ML thy_syntax.ML ../Pure/section_utils.ML\
944
01d6571fa106 Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents: 923
diff changeset
    30
	../Provers/hypsubst.ML ../Provers/classical.ML\
01d6571fa106 Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents: 923
diff changeset
    31
        ../Provers/simplifier.ML ../Provers/splitter.ML\
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    32
 	$(NAMES:%=%.thy) $(NAMES:%=%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    33
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    34
$(BIN)/HOL:   $(BIN)/Pure  $(FILES) 
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    35
	if [ -d $${ISABELLEBIN:?}/Pure ];\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    36
           	then echo Bad value for ISABELLEBIN: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    37
                	$(BIN) is the Isabelle source directory; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    38
                	exit 1; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    39
           	fi;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    40
	case "$(COMP)" in \
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    41
	poly*)	echo 'make_database"$(BIN)/HOL"; quit();'  \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    42
		  | $(COMP) $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    43
		if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    44
                then echo 'open PolyML; init_html (); exit_use"ROOT";' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    45
                  | $(COMP) $(BIN)/HOL;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    46
		else echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/HOL;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    47
                fi;;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    48
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ];\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    49
                then echo 'init_html (); exit_use"ROOT.ML";                                               xML"$(BIN)/HOL" banner;' | $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    50
                else echo 'exit_use"ROOT.ML"; xML"$(BIN)/HOL" banner;' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    51
                       | $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    52
                fi;;\
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    53
	*)	echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    54
                	$(COMP) is not poly or sml; exit 1;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    55
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    56
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    57
$(BIN)/Pure:
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    58
	cd ../Pure;  $(MAKE)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    59
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    60
#### Testing of HOL
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    61
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    62
#A macro referring to the object-logic (depends on ML compiler)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    63
LOGIC:sh=case $ISABELLECOMP in \
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    64
	poly*)	echo "$ISABELLECOMP $ISABELLEBIN/HOL" ;;\
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    65
	sml*)	echo "$ISABELLEBIN/HOL" ;;\
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    66
	*)	echo "echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    67
                	$ISABELLEBIN is not poly or sml; exit 1" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    68
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    69
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    70
##IMP-semantics example
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    71
IMP_NAMES = Com Denotation Equiv Properties
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    72
IMP_FILES = IMP/ROOT.ML $(IMP_NAMES:%=IMP/%.thy) $(IMP_NAMES:%=IMP/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    73
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    74
IMP:    $(BIN)/HOL  $(IMP_FILES)
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 944
diff changeset
    75
	echo 'exit_use"IMP/ROOT.ML";quit();' | $(LOGIC)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    76
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    77
##The integers in HOL
1129
866fff857626 Moved Relation from Integ to main HOL.
nipkow
parents: 1125
diff changeset
    78
INTEG_NAMES = Equiv Integ 
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    79
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    80
INTEG_FILES = Integ/ROOT.ML \
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    81
              $(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    82
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    83
Integ:  $(BIN)/HOL  $(INTEG_FILES)
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 944
diff changeset
    84
	echo 'exit_use"Integ/ROOT.ML";quit();' | $(LOGIC)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    85
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    86
##I/O Automata
1063
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    87
IOA_NTP_NAMES = Abschannel Action Correctness Impl Lemmas Multiset Packet\
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    88
                Receiver Sender
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    89
IOA_ABP_NAMES = Action Correctness Lemmas
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    90
IOA_MT_NAMES = Asig IOA Option Solve
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    91
1254
a28e04685adc replaced "IOA/ROOT.ML" by "IOA/ROOT_NTP.ML IOA/ROOT_ABP.ML"
clasohm
parents: 1253
diff changeset
    92
IOA_FILES = IOA/ROOT_NTP.ML IOA/ROOT_ABP.ML IOA/NTP/Spec.thy\
1063
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    93
 $(IOA_NTP_NAMES:%=IOA/NTP/%.thy) $(IOA_NTP_NAMES:%=IOA/NTP/%.ML)\
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    94
 IOA/ABP/Abschannel.thy IOA/ABP/Abschannel_finite.thy IOA/ABP/Env.thy\
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    95
 IOA/ABP/Impl.thy IOA/ABP/Impl_finite.thy IOA/ABP/Packet.thy\
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    96
 IOA/ABP/Receiver.thy IOA/ABP/Sender.thy IOA/ABP/Spec.thy\
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
    97
 $(IOA_ABP_NAMES:%=IOA/ABP/%.thy) $(IOA_ABP_NAMES:%=IOA/ABP/%.ML)\
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    98
 $(IOA_MT_NAMES:%=IOA/meta_theory/%.thy) $(IOA_MT_NAMES:%=IOA/meta_theory/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    99
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   100
IOA:    $(BIN)/HOL  $(IOA_FILES)
1253
131f72e2cd56 split IOA/ROOT.ML into two files for ABP and NTP
clasohm
parents: 1174
diff changeset
   101
	echo 'exit_use"IOA/ROOT_NTP.ML";quit();' | $(LOGIC)
1264
3eb91524b938 added local simpsets; removed IOA from 'make test'
clasohm
parents: 1254
diff changeset
   102
#	echo 'exit_use"IOA/ROOT_ABP.ML";quit();' | $(LOGIC)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   103
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   104
##Properties of substitutions
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   105
SUBST_NAMES = AList Setplus Subst Unifier UTerm UTLemmas
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   106
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   107
SUBST_FILES = Subst/ROOT.ML \
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   108
              $(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   109
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   110
Subst:  $(BIN)/HOL  $(SUBST_FILES)
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 944
diff changeset
   111
	echo 'exit_use"Subst/ROOT.ML";quit();' | $(LOGIC)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   112
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   113
##Confluence of Lambda-calculus
1270
e3a391e848a9 Added dependency on Eta
nipkow
parents: 1264
diff changeset
   114
LAMBDA_NAMES = Lambda ParRed Commutation Eta
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   115
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   116
LAMBDA_FILES = Lambda/ROOT.ML \
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   117
              $(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML)
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   118
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   119
Lambda:  $(BIN)/HOL  $(LAMBDA_FILES)
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   120
	echo 'exit_use"Lambda/ROOT.ML";quit();' | $(LOGIC)
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   121
1301
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   122
MINIML_NAMES = I Maybe MiniML Type W
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   123
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   124
LAMBDA_FILES = MiniML/ROOT.ML \
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   125
              $(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML)
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   126
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   127
MiniML: $(BIN)/HOL  $(MINIML_FILES)
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   128
	echo 'exit_use"MiniML/ROOT.ML";quit();' | $(LOGIC)
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   129
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   130
##Miscellaneous examples
1174
e57a93d41de0 added mention of new theories BT and Perm
lcp
parents: 1164
diff changeset
   131
EX_NAMES = LexProd MT Acc PropLog Puzzle Qsort LList Rec Simult Term String \
e57a93d41de0 added mention of new theories BT and Perm
lcp
parents: 1164
diff changeset
   132
	   BT Perm
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   133
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   134
EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   135
           ex/set.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   136
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   137
ex:     $(BIN)/HOL  $(EX_FILES)
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 944
diff changeset
   138
	echo 'exit_use"ex/ROOT.ML";quit();' | $(LOGIC)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   139
1264
3eb91524b938 added local simpsets; removed IOA from 'make test'
clasohm
parents: 1254
diff changeset
   140
#Full test. (IOA has been removed temporarily)
1329
8987c0df4b2f Put IOA back into test
nipkow
parents: 1301
diff changeset
   141
test:   $(BIN)/HOL IMP Integ Subst Lambda MiniML IOA ex
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   142
	echo 'Test examples ran successfully' > test
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   143
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   144
.PRECIOUS:  $(BIN)/Pure $(BIN)/HOL