src/HOL/Makefile
author paulson
Wed, 09 Oct 1996 13:32:33 +0200
changeset 2073 fb0655539d05
parent 2023 aa25f20c5d8b
child 2091 644104f85d14
permissions -rw-r--r--
New unified treatment of sequent calculi by Sara Kalvala combines the old LK and Modal with the new ILL (Int. Linear Logic)
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 \
1862
74d4ae2f6fc3 New dummy .thy files to document dependencies
paulson
parents: 1797
diff changeset
    25
        mono Lfp Gfp Nat intr_elim indrule Inductive Finite Arith \
2019
b45d9f2042e0 Moved Option out of IOA into core HOL
nipkow
parents: 1981
diff changeset
    26
        Sexp Univ List RelPow Option
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    27
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    28
FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML\
1981
432db3edccdc New file cladata.ML
paulson
parents: 1972
diff changeset
    29
	ind_syntax.ML cladata.ML simpdata.ML\
1665
e5737154d9bf added thy_data.ML
clasohm
parents: 1639
diff changeset
    30
	typedef.ML thy_syntax.ML thy_data.ML ../Pure/section_utils.ML\
944
01d6571fa106 Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents: 923
diff changeset
    31
	../Provers/hypsubst.ML ../Provers/classical.ML\
01d6571fa106 Added dependencies on ../Provers/hypsubst.ML and removed those on
nipkow
parents: 923
diff changeset
    32
        ../Provers/simplifier.ML ../Provers/splitter.ML\
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    33
 	$(NAMES:%=%.thy) $(NAMES:%=%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    34
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    35
$(BIN)/HOL:   $(BIN)/Pure  $(FILES) 
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    36
	if [ -d $${ISABELLEBIN:?}/Pure ];\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    37
           	then echo Bad value for ISABELLEBIN: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    38
                	$(BIN) is the Isabelle source directory; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    39
                	exit 1; \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    40
           	fi;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    41
	case "$(COMP)" in \
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    42
	poly*)	echo 'make_database"$(BIN)/HOL"; quit();'  \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    43
		  | $(COMP) $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    44
                if [ "$${MAKE_HTML}" = "true" ]; \
1357
dac9989eb88f replaced exit_use by exit_use_dir
clasohm
parents: 1350
diff changeset
    45
                then echo 'open PolyML; make_html := true; exit_use_dir".";' \
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    46
                       | $(COMP) $(BIN)/HOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    47
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    48
                then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/HOL;\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    49
                else echo 'open PolyML; exit_use_dir".";' \
1357
dac9989eb88f replaced exit_use by exit_use_dir
clasohm
parents: 1350
diff changeset
    50
                       | $(COMP) $(BIN)/HOL;\
2023
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 2019
diff changeset
    51
                fi;\
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 2019
diff changeset
    52
		discgarb -c $(BIN)/HOL;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    53
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
1367
78bdb2d04771 fixed make_html bug
clasohm
parents: 1357
diff changeset
    54
                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/HOL" banner;' | $(BIN)/Pure;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    55
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    56
                then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/HOL" banner;' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    57
                       | $(BIN)/Pure;\
1357
dac9989eb88f replaced exit_use by exit_use_dir
clasohm
parents: 1350
diff changeset
    58
                else echo 'exit_use_dir"."; xML"$(BIN)/HOL" banner;' \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    59
                       | $(BIN)/Pure;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    60
                fi;;\
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    61
	*)	echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    62
                	$(COMP) is not poly or sml; exit 1;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    63
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    64
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    65
$(BIN)/Pure:
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    66
	cd ../Pure;  $(MAKE)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    67
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    68
#### Testing of HOL
923
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
#A macro referring to the object-logic (depends on ML compiler)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    71
LOGIC:sh=case $ISABELLECOMP in \
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    72
	poly*)	echo "$ISABELLECOMP $ISABELLEBIN/HOL" ;;\
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    73
	sml*)	echo "$ISABELLEBIN/HOL" ;;\
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    74
	*)	echo "echo Bad value for ISABELLECOMP: \
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    75
                	$ISABELLEBIN is not poly or sml; exit 1" ;;\
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    76
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    77
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    78
##IMP-semantics example
1699
0bcc8cab3461 Forgot to add Expr to IMP.
nipkow
parents: 1698
diff changeset
    79
IMP_NAMES = Expr Com Natural Transition Denotation Hoare VC
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
    80
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
    81
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    82
IMP:    $(BIN)/HOL  $(IMP_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    83
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    84
        then echo 'make_html := true; exit_use_dir"IMP";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    85
        else echo 'exit_use_dir"IMP";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    86
        fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    87
1336
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
    88
##Hoare logic
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
    89
Hoare_NAMES = Hoare Arith2 Examples
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    90
Hoare_FILES = Hoare/ROOT.ML $(Hoare_NAMES:%=Hoare/%.thy) \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    91
              $(Hoare_NAMES:%=Hoare/%.ML)
1336
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
    92
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
    93
Hoare:  $(BIN)/HOL  $(Hoare_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    94
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    95
        then echo 'make_html := true; exit_use_dir"Hoare";quit();' | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    96
        else echo 'exit_use_dir"Hoare";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    97
        fi
1336
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
    98
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    99
##The integers in HOL
1129
866fff857626 Moved Relation from Integ to main HOL.
nipkow
parents: 1125
diff changeset
   100
INTEG_NAMES = Equiv Integ 
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   101
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   102
INTEG_FILES = Integ/ROOT.ML \
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   103
              $(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   104
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   105
Integ:  $(BIN)/HOL  $(INTEG_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   106
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   107
        then echo 'make_html := true; exit_use_dir"Integ";quit();' | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   108
        else echo 'exit_use_dir"Integ";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   109
        fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   110
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   111
##I/O Automata
1063
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
   112
IOA_NTP_NAMES = Abschannel Action Correctness Impl Lemmas Multiset Packet\
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
   113
                Receiver Sender
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
   114
IOA_ABP_NAMES = Action Correctness Lemmas
2019
b45d9f2042e0 Moved Option out of IOA into core HOL
nipkow
parents: 1981
diff changeset
   115
IOA_MT_NAMES = Asig IOA Solve
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   116
1350
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1343
diff changeset
   117
IOA_FILES = IOA/NTP/ROOT.ML IOA/ABP/ROOT.ML IOA/NTP/Spec.thy\
1063
d33e3523a5e6 Brought in line with new organization of IOA.
nipkow
parents: 1044
diff changeset
   118
 $(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
   119
 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
   120
 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
   121
 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
   122
 $(IOA_ABP_NAMES:%=IOA/ABP/%.thy) $(IOA_ABP_NAMES:%=IOA/ABP/%.ML)\
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   123
 $(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
   124
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   125
IOA:    $(BIN)/HOL  $(IOA_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   126
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   127
        then echo 'make_html := true; exit_use_dir"IOA/NTP";quit();' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   128
               | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   129
             echo 'make_html := true; exit_use_dir"IOA/ABP";quit();' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   130
               | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   131
        else echo 'exit_use_dir"IOA/NTP";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   132
	     echo 'exit_use_dir"IOA/ABP";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   133
        fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   134
1972
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   135
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   136
##Authentication & Security Protocols
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   137
Auth_NAMES = Message Shared NS_Shared OtwayRees
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   138
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   139
AUTH_FILES = Auth/ROOT.ML $(AUTH_NAMES:%=Auth/%.thy) $(AUTH_NAMES:%=Auth/%.ML)
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   140
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   141
Auth:   $(BIN)/HOL  $(AUTH_FILES)
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   142
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   143
        then echo 'make_html := true; exit_use_dir"Auth";quit();' | $(LOGIC);\
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   144
        else echo 'exit_use_dir"Auth";quit();' | $(LOGIC); \
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   145
        fi
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   146
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   147
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   148
##Properties of substitutions
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   149
SUBST_NAMES = AList Setplus Subst Unifier UTerm UTLemmas
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   150
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   151
SUBST_FILES = Subst/ROOT.ML \
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   152
              $(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   153
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   154
Subst:  $(BIN)/HOL  $(SUBST_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   155
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   156
        then echo 'make_html := true; exit_use_dir"Subst";quit();' | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   157
        else echo 'exit_use_dir"Subst";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   158
        fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   159
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   160
##Confluence of Lambda-calculus
1270
e3a391e848a9 Added dependency on Eta
nipkow
parents: 1264
diff changeset
   161
LAMBDA_NAMES = Lambda ParRed Commutation Eta
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   162
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   163
LAMBDA_FILES = Lambda/ROOT.ML \
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   164
              $(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML)
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   165
1350
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1343
diff changeset
   166
Lambda:  $(BIN)/HOL $(LAMBDA_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   167
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   168
        then echo 'make_html := true; exit_use_dir"Lambda";quit();' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   169
               | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   170
        else echo 'exit_use_dir"Lambda";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   171
        fi
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   172
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   173
##Type inference for MiniML
1301
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   174
MINIML_NAMES = I Maybe MiniML Type W
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   175
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   176
MINIML_FILES = MiniML/ROOT.ML \
1301
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   177
              $(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML)
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   178
1350
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1343
diff changeset
   179
MiniML: $(BIN)/HOL  $(MINIML_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   180
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   181
        then echo 'make_html := true; exit_use_dir"MiniML";quit();' \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   182
               | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   183
        else echo 'exit_use_dir"MiniML";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   184
        fi
1301
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   185
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   186
##Lexical analysis
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   187
LEX_FILES = Auto AutoChopper Chopper Prefix
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   188
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   189
LEX_FILES = Lex/ROOT.ML \
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   190
            $(LEX_NAMES:%=Lex/%.thy) $(LEX_NAMES:%=Lex/%.ML)
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   191
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   192
Lex:	$(BIN)/HOL  $(LEX_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   193
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   194
        then echo 'make_html := true; exit_use_dir"Lex";quit();' | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   195
        else echo 'exit_use_dir"Lex";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   196
        fi
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   197
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   198
##Miscellaneous examples
1797
334308d2afbc Updated list of theories for target ex
paulson
parents: 1699
diff changeset
   199
EX_NAMES = String BT Perm Comb InSort Qsort LexProd Puzzle Mutil \
334308d2afbc Updated list of theories for target ex
paulson
parents: 1699
diff changeset
   200
            Primes NatSum SList LList Acc PropLog Term Simult MT	    
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   201
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   202
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
   203
           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
   204
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   205
ex:     $(BIN)/HOL  $(EX_FILES)
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   206
	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   207
        then echo 'make_html := true; exit_use_dir"ex";quit();' | $(LOGIC);\
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   208
        else echo 'exit_use_dir"ex";quit();' | $(LOGIC); \
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   209
        fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   210
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   211
#Full test.
1972
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   212
test:   $(BIN)/HOL IMP Hoare Lex Integ Auth Subst Lambda MiniML IOA ex
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   213
	echo 'Test examples ran successfully' > test
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   214
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   215
.PRECIOUS:  $(BIN)/Pure $(BIN)/HOL