src/HOL/Makefile
author paulson
Wed, 07 May 1997 13:51:22 +0200
changeset 3125 3f0ab2c306f7
parent 3079 2ea678d3523f
child 3313 b00902bb16ca
permissions -rw-r--r--
Moved induction examples to directory Induct
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
#									#
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
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 \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    25
	mono Lfp Gfp Nat intr_elim indrule Inductive Finite Arith \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
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\
2889
a86f3b5f3cc7 Added blast.ML as a dependency
paulson
parents: 2534
diff changeset
    31
	../Provers/hypsubst.ML ../Provers/classical.ML ../Provers/blast.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    32
	../Provers/simplifier.ML ../Provers/splitter.ML\
2921
aee40b88a0ad Dependency on Provers/nat_transitive
paulson
parents: 2889
diff changeset
    33
	../Provers/nat_transitive.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    34
	$(NAMES:%=%.thy) $(NAMES:%=%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    35
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    36
$(BIN)/HOL:   $(BIN)/Pure  $(FILES) 
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    37
	@if [ -d $${ISABELLEBIN:?}/Pure ];\
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    38
		then echo Bad value for ISABELLEBIN: \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    39
			$(BIN) is the Isabelle source directory; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    40
			exit 1; \
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    41
	fi
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    42
	@case `basename "$(COMP)"` in \
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    43
	poly*)	echo 'make_database"$(BIN)/HOL"; quit();'  \
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 1270
diff changeset
    44
		  | $(COMP) $(BIN)/Pure;\
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    45
		if [ "$${MAKE_HTML}" = "true" ]; \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    46
		then echo 'open PolyML; make_html := true; exit_use_dir".";' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    47
		       | $(COMP) $(BIN)/HOL;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    48
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    49
		then echo 'open PolyML; make_html := true; exit_use_dir".";				  make_html := false;' | $(COMP) $(BIN)/HOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    50
		else echo 'open PolyML; exit_use_dir".";' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    51
		       | $(COMP) $(BIN)/HOL;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    52
		fi;\
2023
aa25f20c5d8b Calls discgarb -c to realize dramatic space savings!
paulson
parents: 2019
diff changeset
    53
		discgarb -c $(BIN)/HOL;;\
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
    54
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    55
		then echo 'make_html := true; exit_use_dir".";						  xML"$(BIN)/HOL" banner;' | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    56
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    57
		then echo 'make_html := true; exit_use_dir".";						  make_html := false; xML"$(BIN)/HOL" banner;' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    58
		       | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    59
		else echo 'exit_use_dir"."; xML"$(BIN)/HOL" banner;' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    60
		       | $(BIN)/Pure;\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    61
		fi;;\
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    62
	*)	echo Bad value for ISABELLECOMP: \
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    63
			\"$(COMP)\" is not poly or sml; exit 1;;\
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    64
	esac
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    65
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    66
$(BIN)/Pure:
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    67
	cd ../Pure;  $(MAKE)
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    68
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
    69
#### Testing of HOL
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    70
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    71
#A macro referring to the object-logic (depends on ML compiler)
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    72
#	[Thanks to Thomas Santen and Stephan Herrmann from GMD First]
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    73
LOGIC=`case \`basename "$(ISABELLECOMP)"\` in \
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    74
	poly*)	echo "$(ISABELLECOMP) $(ISABELLEBIN)/HOL" ;;\
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    75
	sml*)	echo "$(ISABELLEBIN)/HOL" ;;\
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
    76
	*)	echo "echo; echo Bad value for ISABELLECOMP: \
2235
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    77
			$(ISABELLECOMP) is not poly or sml; exit 1" ;;\
866dbb04816c Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents: 2117
diff changeset
    78
	esac`
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
    79
2371
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    80
##TFL (requires integration into HOL proper)
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    81
TFL_NAMES = mask tfl thms thry usyntax utils
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    82
TFL_FILES = ../TFL/ROOT.ML ../TFL/sys.sml \
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    83
            $(TFL_NAMES:%=../TFL/%.sig) $(TFL_NAMES:%=../TFL/%.sml)
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    84
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    85
TFL:	$(BIN)/HOL  $(TFL_FILES)
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    86
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    87
	then echo 'make_html:= true; exit_use_dir"../TFL";quit();' | $(LOGIC);\
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    88
	else echo 'exit_use_dir"../TFL";quit();' | $(LOGIC); \
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    89
	fi
c5dc6f8b385b Now target "test" builds and tests TFL
paulson
parents: 2329
diff changeset
    90
3125
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    91
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    92
## Inductive definitions: simple examples
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    93
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    94
INDUCT_FILES =  Perm Comb Mutil SList LList LFilter Acc PropLog Term Simult
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    95
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    96
INDUCT_FILES = Induct/ROOT.ML \
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    97
	    $(INDUCT_NAMES:%=Induct/%.thy) $(INDUCT_NAMES:%=Induct/%.ML)
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    98
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
    99
Induct:	$(BIN)/HOL $(INDUCT_FILES)
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   100
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   101
	then echo 'make_html := true; exit_use_dir"Induct";quit();' | $(LOGIC); \
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   102
	else echo 'exit_use_dir"Induct";quit();' | $(LOGIC); \
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   103
	fi
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   104
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   105
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   106
##IMP-semantics example
1699
0bcc8cab3461 Forgot to add Expr to IMP.
nipkow
parents: 1698
diff changeset
   107
IMP_NAMES = Expr Com Natural Transition Denotation Hoare VC
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   108
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
   109
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   110
IMP:	$(BIN)/HOL  $(IMP_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   111
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   112
	then echo 'make_html := true; exit_use_dir"IMP";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   113
	else echo 'exit_use_dir"IMP";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   114
	fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   115
1336
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
   116
##Hoare logic
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
   117
Hoare_NAMES = Hoare Arith2 Examples
1491
38a14548baad make_html now only remains set if MAKE_HTML=true
clasohm
parents: 1472
diff changeset
   118
Hoare_FILES = Hoare/ROOT.ML $(Hoare_NAMES:%=Hoare/%.thy) \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   119
	      $(Hoare_NAMES:%=Hoare/%.ML)
1336
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
   120
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   121
Hoare:	$(BIN)/HOL  $(Hoare_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   122
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   123
	then echo 'make_html := true; exit_use_dir"Hoare";quit();' | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   124
	else echo 'exit_use_dir"Hoare";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   125
	fi
1336
38d66830a046 Added Hoare.
nipkow
parents: 1329
diff changeset
   126
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   127
##The integers in HOL
2279
2f337bf81085 Modified dependencies for ex and Integ. (Rings)
nipkow
parents: 2274
diff changeset
   128
INTEG_NAMES = Equiv Integ Group Ring Lagrange IntRingDefs IntRing
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   129
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   130
INTEG_FILES = Integ/ROOT.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   131
	      $(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   132
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   133
Integ:	$(BIN)/HOL  $(INTEG_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   134
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   135
	then echo 'make_html := true; exit_use_dir"Integ";quit();' | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   136
	else echo 'exit_use_dir"Integ";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   137
	fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   138
1972
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   139
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   140
##Authentication & Security Protocols
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   141
Auth_NAMES = Message Shared NS_Shared OtwayRees OtwayRees_AN OtwayRees_Bad \
2450
3ad2493fa0e0 Addition of Auth/Recur
paulson
parents: 2371
diff changeset
   142
	     Recur WooLam Yahalom Yahalom2 Public NS_Public_Bad NS_Public
1972
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   143
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   144
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
   145
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   146
Auth:	$(BIN)/HOL  $(AUTH_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   147
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   148
	then echo 'make_html := true; exit_use_dir"Auth";quit();' | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   149
	else echo 'exit_use_dir"Auth";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   150
	fi
1972
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   151
cc65911dceef Added Auth to the test target
paulson
parents: 1862
diff changeset
   152
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   153
##Properties of substitutions
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   154
SUBST_NAMES = AList Setplus Subst Unifier UTerm UTLemmas
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   155
1044
5bf29088250e Simplified using pattern replacements.
lcp
parents: 953
diff changeset
   156
SUBST_FILES = Subst/ROOT.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   157
	      $(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML)
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   158
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   159
Subst:	$(BIN)/HOL  $(SUBST_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   160
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   161
	then echo 'make_html := true; exit_use_dir"Subst";quit();' | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   162
	else echo 'exit_use_dir"Subst";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   163
	fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   164
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   165
##Confluence of Lambda-calculus
1270
e3a391e848a9 Added dependency on Eta
nipkow
parents: 1264
diff changeset
   166
LAMBDA_NAMES = Lambda ParRed Commutation Eta
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   167
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   168
LAMBDA_FILES = Lambda/ROOT.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   169
	      $(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML)
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   170
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   171
Lambda:	 $(BIN)/HOL $(LAMBDA_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   172
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   173
	then echo 'make_html := true; exit_use_dir"Lambda";quit();' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   174
	       | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   175
	else echo 'exit_use_dir"Lambda";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   176
	fi
1125
13a3df2adbe5 Added Park induction to Lfp.
nipkow
parents: 1063
diff changeset
   177
2534
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   178
## Type inference without let
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   179
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   180
W0_NAMES = I Maybe MiniML Type W
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   181
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   182
W0_FILES = W0/ROOT.ML \
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   183
	      $(W0_NAMES:%=W0/%.thy) $(W0_NAMES:%=W0/%.ML)
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   184
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   185
W0:	$(BIN)/HOL  $(W0_FILES)
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   186
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   187
	then echo 'make_html := true; exit_use_dir"W0";quit();' \
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   188
	       | $(LOGIC);\
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   189
	else echo 'exit_use_dir"W0";quit();' | $(LOGIC); \
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   190
	fi
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   191
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   192
## Type inference with let
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   193
7a876fc091d6 Modified MiniML. Added W0.
nipkow
parents: 2450
diff changeset
   194
MINIML_NAMES = Generalize Instance Maybe MiniML Type W
1301
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   195
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   196
MINIML_FILES = MiniML/ROOT.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   197
	      $(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML)
1301
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   198
1350
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1343
diff changeset
   199
MiniML: $(BIN)/HOL  $(MINIML_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   200
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   201
	then echo 'make_html := true; exit_use_dir"MiniML";quit();' \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   202
	       | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   203
	else echo 'exit_use_dir"MiniML";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   204
	fi
1301
42782316d510 Added various thms and tactics.
nipkow
parents: 1296
diff changeset
   205
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   206
##Lexical analysis
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   207
LEX_FILES = Auto AutoChopper Chopper Prefix
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   208
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   209
LEX_FILES = Lex/ROOT.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   210
	    $(LEX_NAMES:%=Lex/%.thy) $(LEX_NAMES:%=Lex/%.ML)
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   211
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   212
Lex:	$(BIN)/HOL  $(LEX_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   213
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   214
	then echo 'make_html := true; exit_use_dir"Lex";quit();' | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   215
	else echo 'exit_use_dir"Lex";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   216
	fi
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   217
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   218
##Miscellaneous examples
3125
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   219
EX_NAMES = String BT InSort Qsort LexProd Puzzle Primes NatSum MT
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   220
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   221
EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   222
	   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
   223
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   224
ex:	$(BIN)/HOL  $(EX_FILES)
2117
292df12bace5 ISABELLECOMP may now have a leading pathname
paulson
parents: 2094
diff changeset
   225
	@if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
2094
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   226
	then echo 'make_html := true; exit_use_dir"ex";quit();' | $(LOGIC);\
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   227
	else echo 'exit_use_dir"ex";quit();' | $(LOGIC); \
2061df98aab5 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
   228
	fi
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   229
1343
8770c062b092 Added Lex
nipkow
parents: 1336
diff changeset
   230
#Full test.
3125
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   231
test:	$(BIN)/HOL \
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   232
		TFL Induct IMP Hoare Lex Integ Auth Subst Lambda  \
3f0ab2c306f7 Moved induction examples to directory Induct
paulson
parents: 3079
diff changeset
   233
		W0 MiniML IOA AxClasses Quot ex
923
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   234
	echo 'Test examples ran successfully' > test
ff1574a81019 new version of HOL with curried function application
clasohm
parents:
diff changeset
   235
1164
8e969adf64d6 renamed CHOL to HOL
clasohm
parents: 1129
diff changeset
   236
.PRECIOUS:  $(BIN)/Pure $(BIN)/HOL