src/HOL/IsaMakefile
author wenzelm
Mon Mar 09 16:14:46 1998 +0100 (1998-03-09)
changeset 4707 abe6f28a38c1
parent 4657 941c9b169dc4
child 4729 e1888c0d3b36
permissions -rw-r--r--
tuned;
     1 #
     2 # $Id$
     3 #
     4 # IsaMakefile for HOL
     5 #
     6 
     7 ## targets
     8 
     9 default: HOL
    10 images: HOL TLA
    11 test: HOL-Subst HOL-Induct HOL-IMP HOL-Hoare HOL-Lex HOL-Integ \
    12   HOL-Auth HOL-Modelcheck HOL-Lambda HOL-W0 HOL-MiniML HOL-IOA \
    13   HOL-AxClasses HOL-AxClasses-Group HOL-AxClasses-Lattice \
    14   HOL-AxClasses-Tutorial HOL-Quot HOL-ex TLA-Inc TLA-Buffer TLA-Memory
    15 all: images test
    16 
    17 
    18 ## global settings
    19 
    20 SRC = $(ISABELLE_HOME)/src
    21 OUT = $(ISABELLE_OUTPUT)
    22 LOG = $(OUT)/log
    23 
    24 
    25 ## HOL
    26 
    27 HOL: Pure $(OUT)/HOL
    28 
    29 Pure:
    30 	@cd $(SRC)/Pure; $(ISATOOL) make Pure
    31 
    32 $(OUT)/HOL: $(OUT)/Pure $(SRC)/Provers/Arith/cancel_sums.ML \
    33   $(SRC)/Provers/Arith/nat_transitive.ML $(SRC)/Provers/blast.ML \
    34   $(SRC)/Provers/clasimp.ML $(SRC)/Provers/classical.ML \
    35   $(SRC)/Provers/hypsubst.ML $(SRC)/Provers/simplifier.ML \
    36   $(SRC)/Provers/splitter.ML $(SRC)/Pure/section_utils.ML \
    37   $(SRC)/TFL/dcterm.sml $(SRC)/TFL/post.sml $(SRC)/TFL/rules.new.sml \
    38   $(SRC)/TFL/rules.sig $(SRC)/TFL/sys.sml $(SRC)/TFL/tfl.sig \
    39   $(SRC)/TFL/tfl.sml $(SRC)/TFL/thms.sig $(SRC)/TFL/thms.sml \
    40   $(SRC)/TFL/thry.sig $(SRC)/TFL/thry.sml $(SRC)/TFL/usyntax.sig \
    41   $(SRC)/TFL/usyntax.sml $(SRC)/TFL/utils.sig $(SRC)/TFL/utils.sml \
    42   Arith.ML Arith.thy Divides.ML Divides.thy Finite.ML Finite.thy \
    43   Fun.ML Fun.thy Gfp.ML Gfp.thy HOL.ML HOL.thy Inductive.ML \
    44   Inductive.thy Lfp.ML Lfp.thy List.ML List.thy Map.ML Map.thy Nat.ML \
    45   Nat.thy NatDef.ML NatDef.thy Option.ML Option.thy Ord.ML Ord.thy \
    46   Power.ML Power.thy Prod.ML Prod.thy ROOT.ML RelPow.ML RelPow.thy \
    47   Relation.ML Relation.thy Set.ML Set.thy Sexp.ML Sexp.thy Sum.ML \
    48   Sum.thy Trancl.ML Trancl.thy Univ.ML Univ.thy Vimage.ML Vimage.thy \
    49   WF.ML WF.thy WF_Rel.ML WF_Rel.thy add_ind_def.ML arith_data.ML \
    50   cladata.ML datatype.ML equalities.ML equalities.thy hologic.ML \
    51   ind_syntax.ML indrule.ML indrule.thy intr_elim.ML intr_elim.thy \
    52   mono.ML mono.thy record.ML simpdata.ML subset.ML subset.thy \
    53   thy_data.ML thy_syntax.ML typedef.ML
    54 	@$(ISATOOL) usedir -b $(OUT)/Pure HOL
    55 
    56 
    57 ## HOL-Subst
    58 
    59 HOL-Subst: HOL $(LOG)/HOL-Subst.gz
    60 
    61 $(LOG)/HOL-Subst.gz: $(OUT)/HOL Subst/AList.ML Subst/AList.thy \
    62   Subst/ROOT.ML Subst/Subst.ML Subst/Subst.thy Subst/UTerm.ML \
    63   Subst/UTerm.thy Subst/Unifier.ML Subst/Unifier.thy Subst/Unify.ML \
    64   Subst/Unify.thy
    65 	@$(ISATOOL) usedir $(OUT)/HOL Subst
    66 
    67 
    68 ## HOL-Induct
    69 
    70 HOL-Induct: HOL $(LOG)/HOL-Induct.gz
    71 
    72 $(LOG)/HOL-Induct.gz: $(OUT)/HOL Induct/Acc.ML Induct/Acc.thy \
    73   Induct/Com.ML Induct/Com.thy Induct/Comb.ML Induct/Comb.thy \
    74   Induct/Exp.ML Induct/Exp.thy Induct/LFilter.ML Induct/LFilter.thy \
    75   Induct/LList.ML Induct/LList.thy Induct/Mutil.ML Induct/Mutil.thy \
    76   Induct/Perm.ML Induct/Perm.thy Induct/PropLog.ML Induct/PropLog.thy \
    77   Induct/ROOT.ML Induct/SList.ML Induct/SList.thy Induct/Simult.ML \
    78   Induct/Simult.thy Induct/Term.ML Induct/Term.thy
    79 	@$(ISATOOL) usedir $(OUT)/HOL Induct
    80 
    81 
    82 ## HOL-IMP
    83 
    84 HOL-IMP: HOL $(LOG)/HOL-IMP.gz
    85 
    86 $(LOG)/HOL-IMP.gz: $(OUT)/HOL IMP/Com.ML IMP/Com.thy IMP/Denotation.ML \
    87   IMP/Denotation.thy IMP/Expr.ML IMP/Expr.thy IMP/Hoare.ML IMP/Hoare.thy \
    88   IMP/Natural.ML IMP/Natural.thy IMP/ROOT.ML IMP/Transition.ML \
    89   IMP/Transition.thy IMP/VC.ML IMP/VC.thy
    90 	@$(ISATOOL) usedir $(OUT)/HOL IMP
    91 
    92 
    93 ## HOL-Hoare
    94 
    95 HOL-Hoare: HOL $(LOG)/HOL-Hoare.gz
    96 
    97 $(LOG)/HOL-Hoare.gz: $(OUT)/HOL Hoare/Arith2.ML Hoare/Arith2.thy \
    98   Hoare/Examples.ML Hoare/Examples.thy Hoare/Hoare.ML Hoare/Hoare.thy \
    99   Hoare/ROOT.ML
   100 	@$(ISATOOL) usedir $(OUT)/HOL Hoare
   101 
   102 
   103 ## HOL-Lex
   104 
   105 HOL-Lex: HOL $(LOG)/HOL-Lex.gz
   106 
   107 $(LOG)/HOL-Lex.gz: $(OUT)/HOL Lex/Auto.thy Lex/Auto.ML \
   108   Lex/AutoChopper.thy Lex/AutoChopper.ML Lex/AutoChopper1.thy \
   109   Lex/Chopper.thy Lex/Prefix.thy Lex/Prefix.ML Lex/ROOT.ML \
   110   Lex/Regset_of_auto.ML Lex/Regset_of_auto.thy
   111 	@$(ISATOOL) usedir $(OUT)/HOL Lex
   112 
   113 
   114 ## HOL-Integ
   115 
   116 HOL-Integ: HOL $(LOG)/HOL-Integ.gz
   117 
   118 $(LOG)/HOL-Integ.gz: $(OUT)/HOL Integ/Bin.ML Integ/Bin.thy \
   119   Integ/Equiv.ML Integ/Equiv.thy Integ/Group.ML Integ/Group.thy \
   120   Integ/IntRing.ML Integ/IntRing.thy Integ/IntRingDefs.ML \
   121   Integ/IntRingDefs.thy Integ/Integ.ML Integ/Integ.thy Integ/Lagrange.ML \
   122   Integ/Lagrange.thy Integ/ROOT.ML Integ/Ring.ML Integ/Ring.thy
   123 	@$(ISATOOL) usedir $(OUT)/HOL Integ
   124 
   125 
   126 ## HOL-Auth
   127 
   128 HOL-Auth: HOL $(LOG)/HOL-Auth.gz
   129 
   130 $(LOG)/HOL-Auth.gz: $(OUT)/HOL Auth/Event.ML Auth/Event.thy \
   131   Auth/Message.ML Auth/Message.thy Auth/NS_Public.ML Auth/NS_Public.thy \
   132   Auth/NS_Public_Bad.ML Auth/NS_Public_Bad.thy Auth/NS_Shared.ML \
   133   Auth/NS_Shared.thy Auth/OtwayRees.ML Auth/OtwayRees.thy \
   134   Auth/OtwayRees_AN.ML Auth/OtwayRees_AN.thy Auth/OtwayRees_Bad.ML \
   135   Auth/OtwayRees_Bad.thy Auth/Public.ML Auth/Public.thy Auth/ROOT.ML \
   136   Auth/Recur.ML Auth/Recur.thy Auth/Shared.ML Auth/Shared.thy \
   137   Auth/TLS.ML Auth/TLS.thy Auth/WooLam.ML Auth/WooLam.thy \
   138   Auth/Yahalom.ML Auth/Yahalom.thy Auth/Yahalom2.ML Auth/Yahalom2.thy
   139 	@$(ISATOOL) usedir $(OUT)/HOL Auth
   140 
   141 
   142 ## HOL-Modelcheck
   143 
   144 HOL-Modelcheck: HOL $(LOG)/HOL-Modelcheck.gz
   145 
   146 $(LOG)/HOL-Modelcheck.gz: $(OUT)/HOL Modelcheck/CTL.thy \
   147   Modelcheck/Example.ML Modelcheck/Example.thy Modelcheck/MCSyn.ML \
   148   Modelcheck/MCSyn.thy Modelcheck/MuCalculus.ML	\
   149   Modelcheck/MuCalculus.thy Modelcheck/ROOT.ML
   150 	@$(ISATOOL) usedir $(OUT)/HOL Modelcheck
   151 
   152 
   153 ## HOL-Lambda
   154 
   155 HOL-Lambda: HOL $(LOG)/HOL-Lambda.gz
   156 
   157 $(LOG)/HOL-Lambda.gz: $(OUT)/HOL Lambda/Commutation.ML \
   158   Lambda/Commutation.thy Lambda/Eta.ML Lambda/Eta.thy Lambda/Lambda.ML \
   159   Lambda/Lambda.thy Lambda/ParRed.ML Lambda/ParRed.thy Lambda/ROOT.ML
   160 	@$(ISATOOL) usedir $(OUT)/HOL Lambda
   161 
   162 
   163 ## HOL-W0
   164 
   165 HOL-W0: HOL $(LOG)/HOL-W0.gz
   166 
   167 $(LOG)/HOL-W0.gz: $(OUT)/HOL W0/I.ML W0/I.thy W0/Maybe.ML W0/Maybe.thy \
   168   W0/MiniML.ML W0/MiniML.thy W0/ROOT.ML W0/Type.ML W0/Type.thy W0/W.ML \
   169   W0/W.thy
   170 	@$(ISATOOL) usedir $(OUT)/HOL W0
   171 
   172 
   173 ## HOL-MiniML
   174 
   175 HOL-MiniML: HOL $(LOG)/HOL-MiniML.gz
   176 
   177 $(LOG)/HOL-MiniML.gz: $(OUT)/HOL MiniML/Generalize.ML \
   178   MiniML/Generalize.thy MiniML/Instance.ML MiniML/Instance.thy \
   179   MiniML/Maybe.ML MiniML/Maybe.thy MiniML/MiniML.ML MiniML/MiniML.thy \
   180   MiniML/ROOT.ML MiniML/Type.ML MiniML/Type.thy MiniML/W.ML MiniML/W.thy
   181 	@$(ISATOOL) usedir $(OUT)/HOL MiniML
   182 
   183 
   184 ## HOL-IOA
   185 
   186 HOL-IOA: HOL $(LOG)/HOL-IOA.gz
   187 
   188 $(LOG)/HOL-IOA.gz: $(OUT)/HOL IOA/Asig.ML IOA/Asig.thy IOA/IOA.ML \
   189   IOA/IOA.thy IOA/ROOT.ML IOA/Solve.ML IOA/Solve.thy
   190 	@$(ISATOOL) usedir $(OUT)/HOL IOA
   191 
   192 
   193 ## HOL-AxClasses
   194 
   195 HOL-AxClasses: HOL $(LOG)/HOL-AxClasses.gz
   196 
   197 $(LOG)/HOL-AxClasses.gz: $(OUT)/HOL AxClasses/ROOT.ML
   198 	@$(ISATOOL) usedir $(OUT)/HOL AxClasses
   199 
   200 
   201 ## HOL-AxClasses-Group
   202 
   203 HOL-AxClasses-Group: HOL-AxClasses $(LOG)/HOL-AxClasses-Group.gz
   204 
   205 $(LOG)/HOL-AxClasses-Group.gz: $(OUT)/HOL AxClasses/Group/Group.ML \
   206   AxClasses/Group/Group.thy AxClasses/Group/GroupDefs.ML \
   207   AxClasses/Group/GroupDefs.thy AxClasses/Group/GroupInsts.thy \
   208   AxClasses/Group/Monoid.thy AxClasses/Group/MonoidGroupInsts.thy \
   209   AxClasses/Group/ROOT.ML AxClasses/Group/Sigs.thy
   210 	@$(ISATOOL) usedir -s AxClasses-Group $(OUT)/HOL AxClasses/Group
   211 
   212 
   213 ## HOL-AxClasses-Lattice
   214 
   215 HOL-AxClasses-Lattice: HOL-AxClasses $(LOG)/HOL-AxClasses-Lattice.gz
   216 
   217 $(LOG)/HOL-AxClasses-Lattice.gz: $(OUT)/HOL AxClasses/Lattice/CLattice.ML \
   218   AxClasses/Lattice/CLattice.thy AxClasses/Lattice/LatInsts.ML \
   219   AxClasses/Lattice/LatInsts.thy AxClasses/Lattice/LatMorph.ML \
   220   AxClasses/Lattice/LatMorph.thy AxClasses/Lattice/LatPreInsts.ML \
   221   AxClasses/Lattice/LatPreInsts.thy AxClasses/Lattice/Lattice.ML \
   222   AxClasses/Lattice/Lattice.thy AxClasses/Lattice/OrdDefs.ML \
   223   AxClasses/Lattice/OrdDefs.thy AxClasses/Lattice/OrdInsts.thy \
   224   AxClasses/Lattice/Order.ML AxClasses/Lattice/Order.thy \
   225   AxClasses/Lattice/ROOT.ML AxClasses/Lattice/tools.ML
   226 	@$(ISATOOL) usedir -s AxClasses-Lattice $(OUT)/HOL AxClasses/Lattice
   227 
   228 
   229 ## HOL-AxClasses-Tutorial
   230 
   231 HOL-AxClasses-Tutorial: HOL-AxClasses $(LOG)/HOL-AxClasses-Tutorial.gz
   232 
   233 $(LOG)/HOL-AxClasses-Tutorial.gz: $(OUT)/HOL \
   234   AxClasses/Tutorial/BoolGroupInsts.thy AxClasses/Tutorial/Group.ML \
   235   AxClasses/Tutorial/Group.thy AxClasses/Tutorial/Monoid.thy \
   236   AxClasses/Tutorial/MonoidGroupInsts.thy \
   237   AxClasses/Tutorial/ProdGroupInsts.thy AxClasses/Tutorial/Product.thy \
   238   AxClasses/Tutorial/ProductInsts.thy AxClasses/Tutorial/ROOT.ML \
   239   AxClasses/Tutorial/Semigroup.thy AxClasses/Tutorial/Semigroups.thy \
   240   AxClasses/Tutorial/Sigs.thy AxClasses/Tutorial/Xor.ML \
   241   AxClasses/Tutorial/Xor.thy
   242 	@$(ISATOOL) usedir -s AxClasses-Tutorial $(OUT)/HOL AxClasses/Tutorial
   243 
   244 
   245 ## HOL-Quot
   246 
   247 HOL-Quot: HOL $(LOG)/HOL-Quot.gz
   248 
   249 $(LOG)/HOL-Quot.gz: $(OUT)/HOL Quot/FRACT.ML Quot/FRACT.thy \
   250   Quot/HQUOT.ML Quot/HQUOT.thy Quot/NPAIR.ML Quot/NPAIR.thy Quot/PER.ML \
   251   Quot/PER.thy Quot/PER0.ML Quot/PER0.thy Quot/ROOT.ML
   252 	@$(ISATOOL) usedir $(OUT)/HOL Quot
   253 
   254 
   255 ## HOL-ex
   256 
   257 HOL-ex: HOL $(LOG)/HOL-ex.gz
   258 
   259 $(LOG)/HOL-ex.gz: $(OUT)/HOL ex/BT.ML ex/BT.thy ex/Fib.ML ex/Fib.thy \
   260   ex/InSort.ML ex/InSort.thy ex/MT.ML ex/MT.thy ex/NatSum.ML \
   261   ex/NatSum.thy ex/Primes.ML ex/Primes.thy ex/Primrec.ML ex/Primrec.thy \
   262   ex/Puzzle.ML ex/Puzzle.thy ex/Qsort.ML ex/Qsort.thy ex/ROOT.ML \
   263   ex/Recdef.ML ex/Recdef.thy ex/String.ML ex/String.thy ex/cla.ML \
   264   ex/meson.ML ex/mesontest.ML ex/rel.ML ex/set.ML
   265 	@$(ISATOOL) usedir $(OUT)/HOL ex
   266 
   267 
   268 ## TLA
   269 
   270 TLA: HOL $(OUT)/TLA
   271 
   272 $(OUT)/TLA: $(OUT)/HOL TLA/Action.ML TLA/Action.thy TLA/IntLemmas.ML \
   273   TLA/Intensional.ML TLA/Intensional.thy TLA/ROOT.ML TLA/Stfun.ML \
   274   TLA/Stfun.thy TLA/TLA.ML TLA/TLA.thy TLA/cladata.ML TLA/hypsubst.ML
   275 	@cd TLA; $(ISATOOL) usedir -b $(OUT)/HOL TLA
   276 
   277 
   278 ## TLA-Inc
   279 
   280 TLA-Inc: TLA $(LOG)/TLA-Inc.gz
   281 
   282 $(LOG)/TLA-Inc.gz: $(OUT)/TLA TLA/Inc/Inc.thy TLA/Inc/Inc.ML \
   283   TLA/Inc/Pcount.thy
   284 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Inc
   285 
   286 
   287 ## TLA-Buffer
   288 
   289 TLA-Buffer: TLA $(LOG)/TLA-Buffer.gz
   290 
   291 $(LOG)/TLA-Buffer.gz: $(OUT)/TLA TLA/Buffer/Buffer.thy \
   292   TLA/Buffer/Buffer.ML TLA/Buffer/DBuffer.thy TLA/Buffer/DBuffer.ML
   293 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Buffer
   294 
   295 
   296 ## TLA-Memory
   297 
   298 TLA-Memory: TLA $(LOG)/TLA-Memory.gz
   299 
   300 $(LOG)/TLA-Memory.gz: $(OUT)/TLA TLA/Memory/MIParameters.thy \
   301   TLA/Memory/MIlive.ML TLA/Memory/MIsafe.ML TLA/Memory/MemClerk.ML \
   302   TLA/Memory/MemClerk.thy TLA/Memory/MemClerkParameters.ML \
   303   TLA/Memory/MemClerkParameters.thy TLA/Memory/Memory.ML \
   304   TLA/Memory/Memory.thy TLA/Memory/MemoryImplementation.ML \
   305   TLA/Memory/MemoryImplementation.thy TLA/Memory/MemoryParameters.ML \
   306   TLA/Memory/MemoryParameters.thy TLA/Memory/ProcedureInterface.ML \
   307   TLA/Memory/ProcedureInterface.thy TLA/Memory/RPC.ML TLA/Memory/RPC.thy \
   308   TLA/Memory/RPCMemoryParams.thy TLA/Memory/RPCParameters.ML \
   309   TLA/Memory/RPCParameters.thy
   310 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Memory
   311 
   312 
   313 ## clean
   314 
   315 clean:
   316 	@rm -f $(OUT)/HOL $(LOG)/HOL.gz $(LOG)/HOL-Subst.gz \
   317 	  $(LOG)/HOL-Induct.gz $(LOG)/HOL-IMP.gz $(LOG)/HOL-Hoare.gz \
   318 	  $(LOG)/HOL-Lex.gz $(LOG)/HOL-Integ.gz $(LOG)/HOL-Auth.gz \
   319 	  $(LOG)/HOL-Modelcheck.gz $(LOG)/HOL-Lambda.gz $(LOG)/HOL-W0.gz \
   320 	  $(LOG)/HOL-MiniML.gz $(LOG)/HOL-IOA.gz $(LOG)/HOL-AxClasses.gz \
   321 	  $(LOG)/HOL-AxClasses-Group.gz $(LOG)/HOL-AxClasses-Lattice.gz \
   322 	  $(LOG)/HOL-AxClasses-Tutorial.gz $(LOG)/HOL-Quot.gz \
   323 	  $(LOG)/HOL-ex.gz $(OUT)/TLA $(LOG)/TLA.gz $(LOG)/TLA-Inc.gz \
   324 	  $(LOG)/TLA-Buffer.gz $(LOG)/TLA-Memory.gz