src/HOL/IsaMakefile
author nipkow
Mon Aug 17 11:00:27 1998 +0200 (1998-08-17)
changeset 5322 504b129e0502
parent 5305 513925de8962
child 5358 7e046ef59fe2
permissions -rw-r--r--
Additions to Lex.
     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-Real \
    12   HOL-Auth HOL-UNITY 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 Datatype.thy \
    43   Divides.ML Divides.thy Finite.ML Finite.thy Fun.ML \
    44   Fun.thy Gfp.ML Gfp.thy HOL.ML HOL.thy Inductive.thy Integ/Bin.ML \
    45   Integ/Bin.thy Integ/Equiv.ML Integ/Equiv.thy Integ/Integ.ML \
    46   Integ/Integ.thy Lfp.ML Lfp.thy List.ML List.thy Main.thy Map.ML Map.thy Nat.ML \
    47   Nat.thy NatDef.ML NatDef.thy Option.ML Option.thy Ord.ML Ord.thy \
    48   Power.ML Power.thy Prod.ML Prod.thy ROOT.ML Recdef.thy Record.thy RelPow.ML \
    49   RelPow.thy Relation.ML Relation.thy Set.ML Set.thy Sexp.ML Sexp.thy \
    50   String.thy Sum.ML Sum.thy \
    51   Tools/datatype_aux.ML Tools/datatype_abs_proofs.ML Tools/datatype_package.ML \
    52   Tools/datatype_prop.ML Tools/datatype_rep_proofs.ML \
    53   Tools/inductive_package.ML Tools/primrec_package.ML Tools/record_package.ML \
    54   Tools/typedef_package.ML Trancl.ML Trancl.thy Univ.ML Univ.thy \
    55   Vimage.ML Vimage.thy WF.ML WF.thy WF_Rel.ML \
    56   WF_Rel.thy arith_data.ML cladata.ML equalities.ML \
    57   equalities.thy hologic.ML mono.ML mono.thy simpdata.ML subset.ML \
    58   subset.thy thy_syntax.ML
    59 	@$(ISATOOL) usedir -b $(OUT)/Pure HOL
    60 
    61 
    62 ## HOL-Subst
    63 
    64 HOL-Subst: HOL $(LOG)/HOL-Subst.gz
    65 
    66 $(LOG)/HOL-Subst.gz: $(OUT)/HOL Subst/AList.ML Subst/AList.thy \
    67   Subst/ROOT.ML Subst/Subst.ML Subst/Subst.thy Subst/UTerm.ML \
    68   Subst/UTerm.thy Subst/Unifier.ML Subst/Unifier.thy Subst/Unify.ML \
    69   Subst/Unify.thy
    70 	@$(ISATOOL) usedir $(OUT)/HOL Subst
    71 
    72 
    73 ## HOL-Induct
    74 
    75 HOL-Induct: HOL $(LOG)/HOL-Induct.gz
    76 
    77 $(LOG)/HOL-Induct.gz: $(OUT)/HOL Induct/Acc.ML Induct/Acc.thy \
    78   Induct/Com.ML Induct/Com.thy Induct/Comb.ML Induct/Comb.thy \
    79   Induct/Exp.ML Induct/Exp.thy Induct/LFilter.ML Induct/LFilter.thy \
    80   Induct/LList.ML Induct/LList.thy Induct/Mutil.ML Induct/Mutil.thy \
    81   Induct/Perm.ML Induct/Perm.thy Induct/PropLog.ML Induct/PropLog.thy \
    82   Induct/ROOT.ML Induct/SList.ML Induct/SList.thy Induct/Simult.ML \
    83   Induct/Simult.thy Induct/Term.ML Induct/Term.thy
    84 	@$(ISATOOL) usedir $(OUT)/HOL Induct
    85 
    86 
    87 ## HOL-IMP
    88 
    89 HOL-IMP: HOL $(LOG)/HOL-IMP.gz
    90 
    91 $(LOG)/HOL-IMP.gz: $(OUT)/HOL IMP/Com.thy IMP/Denotation.ML \
    92   IMP/Denotation.thy IMP/Expr.ML IMP/Expr.thy IMP/Hoare.ML IMP/Hoare.thy \
    93   IMP/Natural.ML IMP/Natural.thy IMP/ROOT.ML IMP/Transition.ML \
    94   IMP/Transition.thy IMP/VC.ML IMP/VC.thy
    95 	@$(ISATOOL) usedir $(OUT)/HOL IMP
    96 
    97 
    98 ## HOL-Hoare
    99 
   100 HOL-Hoare: HOL $(LOG)/HOL-Hoare.gz
   101 
   102 $(LOG)/HOL-Hoare.gz: $(OUT)/HOL Hoare/Arith2.ML Hoare/Arith2.thy \
   103   Hoare/Examples.ML Hoare/Examples.thy Hoare/Hoare.ML Hoare/Hoare.thy \
   104   Hoare/ROOT.ML
   105 	@$(ISATOOL) usedir $(OUT)/HOL Hoare
   106 
   107 
   108 ## HOL-Lex
   109 
   110 HOL-Lex: HOL $(LOG)/HOL-Lex.gz
   111 
   112 $(LOG)/HOL-Lex.gz: $(OUT)/HOL \
   113   Lex/AutoChopper.thy Lex/AutoChopper.ML Lex/AutoChopper1.thy \
   114   Lex/AutoMaxChop.thy Lex/AutoMaxChop.ML Lex/AutoProj.thy Lex/AutoProj.ML \
   115   Lex/Automata.thy Lex/Automata.ML Lex/Chopper.thy Lex/DA.thy Lex/DA.ML \
   116   Lex/MaxChop.thy Lex/MaxChop.ML Lex/MaxPrefix.thy Lex/MaxPrefix.ML \
   117   Lex/NA.thy Lex/NA.ML Lex/NAe.thy Lex/NAe.ML Lex/RegExp2NAe.thy \
   118   Lex/RegExp2NAe.ML Lex/RegExp2NA.thy Lex/RegExp2NA.ML \
   119   Lex/Prefix.thy Lex/Prefix.ML Lex/ROOT.ML \
   120   Lex/RegExp.thy Lex/RegSet.thy Lex/RegSet.ML \
   121   Lex/RegSet_of_nat_DA.thy Lex/RegSet_of_nat_DA.ML
   122 	@$(ISATOOL) usedir $(OUT)/HOL Lex
   123 
   124 
   125 ## HOL-Real
   126 
   127 HOL-Real: HOL $(LOG)/HOL-Real.gz
   128 
   129 $(LOG)/HOL-Real.gz: $(OUT)/HOL \
   130   Real/Lubs.ML Real/Lubs.thy Real/PNat.ML Real/PNat.thy \
   131   Real/PRat.ML Real/PRat.thy Real/PReal.ML Real/PReal.thy \
   132   Real/RComplete.ML Real/RComplete.thy Real/Real.ML Real/Real.thy \
   133   Real/RealAbs.ML Real/RealAbs.thy Real/ROOT.ML
   134 	@$(ISATOOL) usedir $(OUT)/HOL Real
   135 
   136 
   137 ## HOL-Auth
   138 
   139 HOL-Auth: HOL $(LOG)/HOL-Auth.gz
   140 
   141 $(LOG)/HOL-Auth.gz: $(OUT)/HOL Auth/Event.ML Auth/Event.thy \
   142   Auth/Message.ML Auth/Message.thy Auth/NS_Public.ML Auth/NS_Public.thy \
   143   Auth/NS_Public_Bad.ML Auth/NS_Public_Bad.thy Auth/NS_Shared.ML \
   144   Auth/NS_Shared.thy Auth/OtwayRees.ML Auth/OtwayRees.thy \
   145   Auth/OtwayRees_AN.ML Auth/OtwayRees_AN.thy Auth/OtwayRees_Bad.ML \
   146   Auth/OtwayRees_Bad.thy Auth/Public.ML Auth/Public.thy Auth/ROOT.ML \
   147   Auth/Recur.ML Auth/Recur.thy Auth/Shared.ML Auth/Shared.thy \
   148   Auth/TLS.ML Auth/TLS.thy Auth/WooLam.ML Auth/WooLam.thy \
   149   Auth/Yahalom.ML Auth/Yahalom.thy Auth/Yahalom2.ML Auth/Yahalom2.thy
   150 	@$(ISATOOL) usedir $(OUT)/HOL Auth
   151 
   152 
   153 ## HOL-UNITY
   154 
   155 HOL-UNITY: HOL $(LOG)/HOL-UNITY.gz
   156 
   157 $(LOG)/HOL-UNITY.gz: $(OUT)/HOL UNITY/ROOT.ML\
   158   UNITY/Channel.ML UNITY/Channel.thy UNITY/Common.ML UNITY/Common.thy\
   159   UNITY/Deadlock.ML UNITY/Deadlock.thy UNITY/FP.ML UNITY/FP.thy\
   160   UNITY/LessThan.ML UNITY/LessThan.thy UNITY/Mutex.ML UNITY/Mutex.thy\
   161   UNITY/Network.ML UNITY/Network.thy UNITY/Reach.ML UNITY/Reach.thy\
   162   UNITY/SubstAx.ML UNITY/SubstAx.thy UNITY/Token.ML UNITY/Token.thy\
   163   UNITY/Traces.ML UNITY/Traces.thy UNITY/UNITY.ML UNITY/UNITY.thy\
   164   UNITY/WFair.ML UNITY/WFair.thy
   165 	@$(ISATOOL) usedir $(OUT)/HOL UNITY
   166 
   167 
   168 ## HOL-Modelcheck
   169 
   170 HOL-Modelcheck: HOL $(LOG)/HOL-Modelcheck.gz
   171 
   172 $(LOG)/HOL-Modelcheck.gz: $(OUT)/HOL Modelcheck/CTL.thy \
   173   Modelcheck/Example.ML Modelcheck/Example.thy Modelcheck/MCSyn.ML \
   174   Modelcheck/MCSyn.thy Modelcheck/MuCalculus.ML	\
   175   Modelcheck/MuCalculus.thy Modelcheck/ROOT.ML
   176 	@$(ISATOOL) usedir $(OUT)/HOL Modelcheck
   177 
   178 
   179 ## HOL-Lambda
   180 
   181 HOL-Lambda: HOL $(LOG)/HOL-Lambda.gz
   182 
   183 $(LOG)/HOL-Lambda.gz: $(OUT)/HOL Lambda/Commutation.ML \
   184   Lambda/Commutation.thy Lambda/Eta.ML Lambda/Eta.thy Lambda/InductTermi.ML \
   185   Lambda/InductTermi.thy Lambda/Lambda.ML Lambda/Lambda.thy \
   186   Lambda/ListApplication.ML Lambda/ListApplication.thy Lambda/ListBeta.ML \
   187   Lambda/ListBeta.thy Lambda/ListOrder.ML Lambda/ListOrder.thy \
   188   Lambda/ParRed.ML Lambda/ParRed.thy Lambda/ROOT.ML
   189 	@$(ISATOOL) usedir $(OUT)/HOL Lambda
   190 
   191 
   192 ## HOL-W0
   193 
   194 HOL-W0: HOL $(LOG)/HOL-W0.gz
   195 
   196 $(LOG)/HOL-W0.gz: $(OUT)/HOL W0/I.ML W0/I.thy W0/Maybe.ML W0/Maybe.thy \
   197   W0/MiniML.ML W0/MiniML.thy W0/ROOT.ML W0/Type.ML W0/Type.thy W0/W.ML \
   198   W0/W.thy
   199 	@$(ISATOOL) usedir $(OUT)/HOL W0
   200 
   201 
   202 ## HOL-MiniML
   203 
   204 HOL-MiniML: HOL $(LOG)/HOL-MiniML.gz
   205 
   206 $(LOG)/HOL-MiniML.gz: $(OUT)/HOL MiniML/Generalize.ML \
   207   MiniML/Generalize.thy MiniML/Instance.ML MiniML/Instance.thy \
   208   MiniML/Maybe.ML MiniML/Maybe.thy MiniML/MiniML.ML MiniML/MiniML.thy \
   209   MiniML/ROOT.ML MiniML/Type.ML MiniML/Type.thy MiniML/W.ML MiniML/W.thy
   210 	@$(ISATOOL) usedir $(OUT)/HOL MiniML
   211 
   212 
   213 ## HOL-IOA
   214 
   215 HOL-IOA: HOL $(LOG)/HOL-IOA.gz
   216 
   217 $(LOG)/HOL-IOA.gz: $(OUT)/HOL IOA/Asig.ML IOA/Asig.thy IOA/IOA.ML \
   218   IOA/IOA.thy IOA/ROOT.ML IOA/Solve.ML IOA/Solve.thy
   219 	@$(ISATOOL) usedir $(OUT)/HOL IOA
   220 
   221 
   222 ## HOL-AxClasses
   223 
   224 HOL-AxClasses: HOL $(LOG)/HOL-AxClasses.gz
   225 
   226 $(LOG)/HOL-AxClasses.gz: $(OUT)/HOL AxClasses/ROOT.ML
   227 	@$(ISATOOL) usedir $(OUT)/HOL AxClasses
   228 
   229 
   230 ## HOL-AxClasses-Group
   231 
   232 HOL-AxClasses-Group: HOL-AxClasses $(LOG)/HOL-AxClasses-Group.gz
   233 
   234 $(LOG)/HOL-AxClasses-Group.gz: $(OUT)/HOL AxClasses/Group/Group.ML \
   235   AxClasses/Group/Group.thy AxClasses/Group/GroupDefs.ML \
   236   AxClasses/Group/GroupDefs.thy AxClasses/Group/GroupInsts.thy \
   237   AxClasses/Group/Monoid.thy AxClasses/Group/MonoidGroupInsts.thy \
   238   AxClasses/Group/ROOT.ML AxClasses/Group/Sigs.thy
   239 	@$(ISATOOL) usedir -s AxClasses-Group $(OUT)/HOL AxClasses/Group
   240 
   241 
   242 ## HOL-AxClasses-Lattice
   243 
   244 HOL-AxClasses-Lattice: HOL-AxClasses $(LOG)/HOL-AxClasses-Lattice.gz
   245 
   246 $(LOG)/HOL-AxClasses-Lattice.gz: $(OUT)/HOL AxClasses/Lattice/CLattice.ML \
   247   AxClasses/Lattice/CLattice.thy AxClasses/Lattice/LatInsts.ML \
   248   AxClasses/Lattice/LatInsts.thy AxClasses/Lattice/LatMorph.ML \
   249   AxClasses/Lattice/LatMorph.thy AxClasses/Lattice/LatPreInsts.ML \
   250   AxClasses/Lattice/LatPreInsts.thy AxClasses/Lattice/Lattice.ML \
   251   AxClasses/Lattice/Lattice.thy AxClasses/Lattice/OrdDefs.ML \
   252   AxClasses/Lattice/OrdDefs.thy AxClasses/Lattice/OrdInsts.thy \
   253   AxClasses/Lattice/Order.ML AxClasses/Lattice/Order.thy \
   254   AxClasses/Lattice/ROOT.ML AxClasses/Lattice/tools.ML
   255 	@$(ISATOOL) usedir -s AxClasses-Lattice $(OUT)/HOL AxClasses/Lattice
   256 
   257 
   258 ## HOL-AxClasses-Tutorial
   259 
   260 HOL-AxClasses-Tutorial: HOL-AxClasses $(LOG)/HOL-AxClasses-Tutorial.gz
   261 
   262 $(LOG)/HOL-AxClasses-Tutorial.gz: $(OUT)/HOL \
   263   AxClasses/Tutorial/BoolGroupInsts.thy AxClasses/Tutorial/Group.ML \
   264   AxClasses/Tutorial/Group.thy AxClasses/Tutorial/Monoid.thy \
   265   AxClasses/Tutorial/MonoidGroupInsts.thy \
   266   AxClasses/Tutorial/ProdGroupInsts.thy AxClasses/Tutorial/Product.thy \
   267   AxClasses/Tutorial/ProductInsts.thy AxClasses/Tutorial/ROOT.ML \
   268   AxClasses/Tutorial/Semigroup.thy AxClasses/Tutorial/Semigroups.thy \
   269   AxClasses/Tutorial/Sigs.thy AxClasses/Tutorial/Xor.ML \
   270   AxClasses/Tutorial/Xor.thy
   271 	@$(ISATOOL) usedir -s AxClasses-Tutorial $(OUT)/HOL AxClasses/Tutorial
   272 
   273 
   274 ## HOL-Quot
   275 
   276 HOL-Quot: HOL $(LOG)/HOL-Quot.gz
   277 
   278 $(LOG)/HOL-Quot.gz: $(OUT)/HOL Quot/FRACT.ML Quot/FRACT.thy \
   279   Quot/HQUOT.ML Quot/HQUOT.thy Quot/NPAIR.ML Quot/NPAIR.thy Quot/PER.ML \
   280   Quot/PER.thy Quot/PER0.ML Quot/PER0.thy Quot/ROOT.ML
   281 	@$(ISATOOL) usedir $(OUT)/HOL Quot
   282 
   283 
   284 ## HOL-ex
   285 
   286 HOL-ex: HOL $(LOG)/HOL-ex.gz
   287 
   288 $(LOG)/HOL-ex.gz: $(OUT)/HOL ex/BT.ML ex/BT.thy ex/Fib.ML ex/Fib.thy \
   289   ex/InSort.ML ex/InSort.thy ex/MT.ML ex/MT.thy ex/NatSum.ML \
   290   ex/NatSum.thy ex/Primes.ML ex/Primes.thy ex/Primrec.ML \
   291   ex/Primrec.thy ex/Puzzle.ML ex/Puzzle.thy ex/Qsort.ML ex/Qsort.thy \
   292   ex/ROOT.ML ex/Recdefs.ML ex/Recdefs.thy ex/cla.ML ex/meson.ML \
   293   ex/mesontest.ML ex/set.ML ex/Group.ML ex/Group.thy ex/IntRing.ML \
   294   ex/IntRing.thy ex/IntRingDefs.ML ex/IntRingDefs.thy ex/Lagrange.ML \
   295   ex/Lagrange.thy ex/Ring.ML ex/Ring.thy ex/StringEx.ML \
   296   ex/StringEx.thy ex/BinEx.ML ex/BinEx.thy ex/MonoidGroup.thy \
   297   ex/PiSets.thy ex/PiSets.ML ex/LocaleGroup.thy ex/LocaleGroup.ML
   298 	@$(ISATOOL) usedir $(OUT)/HOL ex
   299 
   300 
   301 ## TLA
   302 
   303 TLA: HOL $(OUT)/TLA
   304 
   305 $(OUT)/TLA: $(OUT)/HOL TLA/Action.ML TLA/Action.thy TLA/IntLemmas.ML \
   306   TLA/Intensional.ML TLA/Intensional.thy TLA/ROOT.ML TLA/Stfun.ML \
   307   TLA/Stfun.thy TLA/TLA.ML TLA/TLA.thy TLA/cladata.ML TLA/hypsubst.ML
   308 	@cd TLA; $(ISATOOL) usedir -b $(OUT)/HOL TLA
   309 
   310 
   311 ## TLA-Inc
   312 
   313 TLA-Inc: TLA $(LOG)/TLA-Inc.gz
   314 
   315 $(LOG)/TLA-Inc.gz: $(OUT)/TLA TLA/Inc/Inc.thy TLA/Inc/Inc.ML \
   316   TLA/Inc/Pcount.thy
   317 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Inc
   318 
   319 
   320 ## TLA-Buffer
   321 
   322 TLA-Buffer: TLA $(LOG)/TLA-Buffer.gz
   323 
   324 $(LOG)/TLA-Buffer.gz: $(OUT)/TLA TLA/Buffer/Buffer.thy \
   325   TLA/Buffer/Buffer.ML TLA/Buffer/DBuffer.thy TLA/Buffer/DBuffer.ML
   326 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Buffer
   327 
   328 
   329 ## TLA-Memory
   330 
   331 TLA-Memory: TLA $(LOG)/TLA-Memory.gz
   332 
   333 $(LOG)/TLA-Memory.gz: $(OUT)/TLA TLA/Memory/MIParameters.thy \
   334   TLA/Memory/MIlive.ML TLA/Memory/MIsafe.ML TLA/Memory/MemClerk.ML \
   335   TLA/Memory/MemClerk.thy TLA/Memory/MemClerkParameters.ML \
   336   TLA/Memory/MemClerkParameters.thy TLA/Memory/Memory.ML \
   337   TLA/Memory/Memory.thy TLA/Memory/MemoryImplementation.ML \
   338   TLA/Memory/MemoryImplementation.thy TLA/Memory/MemoryParameters.ML \
   339   TLA/Memory/MemoryParameters.thy TLA/Memory/ProcedureInterface.ML \
   340   TLA/Memory/ProcedureInterface.thy TLA/Memory/RPC.ML TLA/Memory/RPC.thy \
   341   TLA/Memory/RPCMemoryParams.thy TLA/Memory/RPCParameters.ML \
   342   TLA/Memory/RPCParameters.thy
   343 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Memory
   344 
   345 
   346 ## clean
   347 
   348 clean:
   349 	@rm -f $(OUT)/HOL $(LOG)/HOL.gz $(LOG)/HOL-Subst.gz \
   350 	  $(LOG)/HOL-Induct.gz $(LOG)/HOL-IMP.gz $(LOG)/HOL-Hoare.gz \
   351 	  $(LOG)/HOL-Lex.gz $(LOG)/HOL-Real.gz $(LOG)/HOL-Auth.gz $(LOG)/HOL-UNITY.gz \
   352 	  $(LOG)/HOL-Modelcheck.gz $(LOG)/HOL-Lambda.gz $(LOG)/HOL-W0.gz \
   353 	  $(LOG)/HOL-MiniML.gz $(LOG)/HOL-IOA.gz $(LOG)/HOL-AxClasses.gz \
   354 	  $(LOG)/HOL-AxClasses-Group.gz $(LOG)/HOL-AxClasses-Lattice.gz \
   355 	  $(LOG)/HOL-AxClasses-Tutorial.gz $(LOG)/HOL-Quot.gz \
   356 	  $(LOG)/HOL-ex.gz $(OUT)/TLA $(LOG)/TLA.gz $(LOG)/TLA-Inc.gz \
   357 	  $(LOG)/TLA-Buffer.gz $(LOG)/TLA-Memory.gz