src/HOL/IsaMakefile
author wenzelm
Wed Apr 29 11:38:52 1998 +0200 (1998-04-29)
changeset 4864 3abfe2093aa0
parent 4830 bd73675adbed
child 4896 4727272f3db6
permissions -rw-r--r--
removed typedef.ML, record.ML;
added Tools/typedef_package.ML, Tools/record_package.ML, Record.thy;
     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-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 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 Record.thy ROOT.ML RelPow.ML \
    47   RelPow.thy Relation.ML Relation.thy Set.ML Set.thy Sexp.ML Sexp.thy \
    48   Sum.ML Sum.thy Tools/record_package.ML Tools/typedef_package.ML \
    49   Trancl.ML Trancl.thy Univ.ML Univ.thy Vimage.ML Vimage.thy WF.ML \
    50   WF.thy WF_Rel.ML WF_Rel.thy add_ind_def.ML arith_data.ML cladata.ML \
    51   datatype.ML equalities.ML equalities.thy hologic.ML ind_syntax.ML \
    52   indrule.ML indrule.thy intr_elim.ML intr_elim.thy mono.ML mono.thy \
    53   simpdata.ML subset.ML subset.thy thy_data.ML thy_syntax.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 \
   108   Lex/AutoChopper.thy Lex/AutoChopper.ML Lex/AutoChopper1.thy \
   109   Lex/AutoMaxChop.thy Lex/AutoMaxChop.ML Lex/AutoProj.thy Lex/AutoProj.ML \
   110   Lex/Automata.thy Lex/Automata.ML Lex/Chopper.thy Lex/DA.thy Lex/DA.ML \
   111   Lex/MaxChop.thy Lex/MaxChop.ML Lex/MaxPrefix.thy Lex/MaxPrefix.ML \
   112   Lex/NA.thy Lex/NAe.thy Lex/NAe.ML Lex/NAe_of_RegExp.thy Lex/NAe_of_RegExp.ML\
   113   Lex/Prefix.thy Lex/Prefix.ML Lex/ROOT.ML \
   114   Lex/RegExp.thy Lex/RegSet.thy Lex/RegSet.ML \
   115   Lex/RegSet_of_nat_DA.thy Lex/RegSet_of_nat_DA.ML
   116 	@$(ISATOOL) usedir $(OUT)/HOL Lex
   117 
   118 
   119 ## HOL-Integ
   120 
   121 HOL-Integ: HOL $(LOG)/HOL-Integ.gz
   122 
   123 $(LOG)/HOL-Integ.gz: $(OUT)/HOL Integ/Bin.ML Integ/Bin.thy \
   124   Integ/Equiv.ML Integ/Equiv.thy Integ/Group.ML Integ/Group.thy \
   125   Integ/IntRing.ML Integ/IntRing.thy Integ/IntRingDefs.ML \
   126   Integ/IntRingDefs.thy Integ/Integ.ML Integ/Integ.thy Integ/Lagrange.ML \
   127   Integ/Lagrange.thy Integ/ROOT.ML Integ/Ring.ML Integ/Ring.thy
   128 	@$(ISATOOL) usedir $(OUT)/HOL Integ
   129 
   130 
   131 ## HOL-Auth
   132 
   133 HOL-Auth: HOL $(LOG)/HOL-Auth.gz
   134 
   135 $(LOG)/HOL-Auth.gz: $(OUT)/HOL Auth/Event.ML Auth/Event.thy \
   136   Auth/Message.ML Auth/Message.thy Auth/NS_Public.ML Auth/NS_Public.thy \
   137   Auth/NS_Public_Bad.ML Auth/NS_Public_Bad.thy Auth/NS_Shared.ML \
   138   Auth/NS_Shared.thy Auth/OtwayRees.ML Auth/OtwayRees.thy \
   139   Auth/OtwayRees_AN.ML Auth/OtwayRees_AN.thy Auth/OtwayRees_Bad.ML \
   140   Auth/OtwayRees_Bad.thy Auth/Public.ML Auth/Public.thy Auth/ROOT.ML \
   141   Auth/Recur.ML Auth/Recur.thy Auth/Shared.ML Auth/Shared.thy \
   142   Auth/TLS.ML Auth/TLS.thy Auth/WooLam.ML Auth/WooLam.thy \
   143   Auth/Yahalom.ML Auth/Yahalom.thy Auth/Yahalom2.ML Auth/Yahalom2.thy
   144 	@$(ISATOOL) usedir $(OUT)/HOL Auth
   145 
   146 
   147 ## HOL-UNITY
   148 
   149 HOL-UNITY: HOL $(LOG)/HOL-UNITY.gz
   150 
   151 $(LOG)/HOL-UNITY.gz: $(OUT)/HOL UNITY/ROOT.ML\
   152   UNITY/Channel.ML UNITY/Channel.thy UNITY/Common.ML UNITY/Common.thy\
   153   UNITY/Deadlock.ML UNITY/Deadlock.thy UNITY/FP.ML UNITY/FP.thy\
   154   UNITY/LessThan.ML UNITY/LessThan.thy UNITY/Mutex.ML UNITY/Mutex.thy\
   155   UNITY/Network.ML UNITY/Network.thy UNITY/Reach.ML UNITY/Reach.thy\
   156   UNITY/SubstAx.ML UNITY/SubstAx.thy UNITY/Token.ML UNITY/Token.thy\
   157   UNITY/Traces.ML UNITY/Traces.thy UNITY/UNITY.ML UNITY/UNITY.thy\
   158   UNITY/Update.ML UNITY/Update.thy UNITY/WFair.ML UNITY/WFair.thy
   159 	@$(ISATOOL) usedir $(OUT)/HOL UNITY
   160 
   161 
   162 ## HOL-Modelcheck
   163 
   164 HOL-Modelcheck: HOL $(LOG)/HOL-Modelcheck.gz
   165 
   166 $(LOG)/HOL-Modelcheck.gz: $(OUT)/HOL Modelcheck/CTL.thy \
   167   Modelcheck/Example.ML Modelcheck/Example.thy Modelcheck/MCSyn.ML \
   168   Modelcheck/MCSyn.thy Modelcheck/MuCalculus.ML	\
   169   Modelcheck/MuCalculus.thy Modelcheck/ROOT.ML
   170 	@$(ISATOOL) usedir $(OUT)/HOL Modelcheck
   171 
   172 
   173 ## HOL-Lambda
   174 
   175 HOL-Lambda: HOL $(LOG)/HOL-Lambda.gz
   176 
   177 $(LOG)/HOL-Lambda.gz: $(OUT)/HOL Lambda/Commutation.ML \
   178   Lambda/Commutation.thy Lambda/Eta.ML Lambda/Eta.thy Lambda/Lambda.ML \
   179   Lambda/Lambda.thy Lambda/ParRed.ML Lambda/ParRed.thy Lambda/ROOT.ML
   180 	@$(ISATOOL) usedir $(OUT)/HOL Lambda
   181 
   182 
   183 ## HOL-W0
   184 
   185 HOL-W0: HOL $(LOG)/HOL-W0.gz
   186 
   187 $(LOG)/HOL-W0.gz: $(OUT)/HOL W0/I.ML W0/I.thy W0/Maybe.ML W0/Maybe.thy \
   188   W0/MiniML.ML W0/MiniML.thy W0/ROOT.ML W0/Type.ML W0/Type.thy W0/W.ML \
   189   W0/W.thy
   190 	@$(ISATOOL) usedir $(OUT)/HOL W0
   191 
   192 
   193 ## HOL-MiniML
   194 
   195 HOL-MiniML: HOL $(LOG)/HOL-MiniML.gz
   196 
   197 $(LOG)/HOL-MiniML.gz: $(OUT)/HOL MiniML/Generalize.ML \
   198   MiniML/Generalize.thy MiniML/Instance.ML MiniML/Instance.thy \
   199   MiniML/Maybe.ML MiniML/Maybe.thy MiniML/MiniML.ML MiniML/MiniML.thy \
   200   MiniML/ROOT.ML MiniML/Type.ML MiniML/Type.thy MiniML/W.ML MiniML/W.thy
   201 	@$(ISATOOL) usedir $(OUT)/HOL MiniML
   202 
   203 
   204 ## HOL-IOA
   205 
   206 HOL-IOA: HOL $(LOG)/HOL-IOA.gz
   207 
   208 $(LOG)/HOL-IOA.gz: $(OUT)/HOL IOA/Asig.ML IOA/Asig.thy IOA/IOA.ML \
   209   IOA/IOA.thy IOA/ROOT.ML IOA/Solve.ML IOA/Solve.thy
   210 	@$(ISATOOL) usedir $(OUT)/HOL IOA
   211 
   212 
   213 ## HOL-AxClasses
   214 
   215 HOL-AxClasses: HOL $(LOG)/HOL-AxClasses.gz
   216 
   217 $(LOG)/HOL-AxClasses.gz: $(OUT)/HOL AxClasses/ROOT.ML
   218 	@$(ISATOOL) usedir $(OUT)/HOL AxClasses
   219 
   220 
   221 ## HOL-AxClasses-Group
   222 
   223 HOL-AxClasses-Group: HOL-AxClasses $(LOG)/HOL-AxClasses-Group.gz
   224 
   225 $(LOG)/HOL-AxClasses-Group.gz: $(OUT)/HOL AxClasses/Group/Group.ML \
   226   AxClasses/Group/Group.thy AxClasses/Group/GroupDefs.ML \
   227   AxClasses/Group/GroupDefs.thy AxClasses/Group/GroupInsts.thy \
   228   AxClasses/Group/Monoid.thy AxClasses/Group/MonoidGroupInsts.thy \
   229   AxClasses/Group/ROOT.ML AxClasses/Group/Sigs.thy
   230 	@$(ISATOOL) usedir -s AxClasses-Group $(OUT)/HOL AxClasses/Group
   231 
   232 
   233 ## HOL-AxClasses-Lattice
   234 
   235 HOL-AxClasses-Lattice: HOL-AxClasses $(LOG)/HOL-AxClasses-Lattice.gz
   236 
   237 $(LOG)/HOL-AxClasses-Lattice.gz: $(OUT)/HOL AxClasses/Lattice/CLattice.ML \
   238   AxClasses/Lattice/CLattice.thy AxClasses/Lattice/LatInsts.ML \
   239   AxClasses/Lattice/LatInsts.thy AxClasses/Lattice/LatMorph.ML \
   240   AxClasses/Lattice/LatMorph.thy AxClasses/Lattice/LatPreInsts.ML \
   241   AxClasses/Lattice/LatPreInsts.thy AxClasses/Lattice/Lattice.ML \
   242   AxClasses/Lattice/Lattice.thy AxClasses/Lattice/OrdDefs.ML \
   243   AxClasses/Lattice/OrdDefs.thy AxClasses/Lattice/OrdInsts.thy \
   244   AxClasses/Lattice/Order.ML AxClasses/Lattice/Order.thy \
   245   AxClasses/Lattice/ROOT.ML AxClasses/Lattice/tools.ML
   246 	@$(ISATOOL) usedir -s AxClasses-Lattice $(OUT)/HOL AxClasses/Lattice
   247 
   248 
   249 ## HOL-AxClasses-Tutorial
   250 
   251 HOL-AxClasses-Tutorial: HOL-AxClasses $(LOG)/HOL-AxClasses-Tutorial.gz
   252 
   253 $(LOG)/HOL-AxClasses-Tutorial.gz: $(OUT)/HOL \
   254   AxClasses/Tutorial/BoolGroupInsts.thy AxClasses/Tutorial/Group.ML \
   255   AxClasses/Tutorial/Group.thy AxClasses/Tutorial/Monoid.thy \
   256   AxClasses/Tutorial/MonoidGroupInsts.thy \
   257   AxClasses/Tutorial/ProdGroupInsts.thy AxClasses/Tutorial/Product.thy \
   258   AxClasses/Tutorial/ProductInsts.thy AxClasses/Tutorial/ROOT.ML \
   259   AxClasses/Tutorial/Semigroup.thy AxClasses/Tutorial/Semigroups.thy \
   260   AxClasses/Tutorial/Sigs.thy AxClasses/Tutorial/Xor.ML \
   261   AxClasses/Tutorial/Xor.thy
   262 	@$(ISATOOL) usedir -s AxClasses-Tutorial $(OUT)/HOL AxClasses/Tutorial
   263 
   264 
   265 ## HOL-Quot
   266 
   267 HOL-Quot: HOL $(LOG)/HOL-Quot.gz
   268 
   269 $(LOG)/HOL-Quot.gz: $(OUT)/HOL Quot/FRACT.ML Quot/FRACT.thy \
   270   Quot/HQUOT.ML Quot/HQUOT.thy Quot/NPAIR.ML Quot/NPAIR.thy Quot/PER.ML \
   271   Quot/PER.thy Quot/PER0.ML Quot/PER0.thy Quot/ROOT.ML
   272 	@$(ISATOOL) usedir $(OUT)/HOL Quot
   273 
   274 
   275 ## HOL-ex
   276 
   277 HOL-ex: HOL $(LOG)/HOL-ex.gz
   278 
   279 $(LOG)/HOL-ex.gz: $(OUT)/HOL ex/BT.ML ex/BT.thy ex/Fib.ML ex/Fib.thy \
   280   ex/InSort.ML ex/InSort.thy ex/MT.ML ex/MT.thy ex/NatSum.ML \
   281   ex/NatSum.thy ex/Primes.ML ex/Primes.thy ex/Primrec.ML ex/Primrec.thy \
   282   ex/Puzzle.ML ex/Puzzle.thy ex/Qsort.ML ex/Qsort.thy ex/ROOT.ML \
   283   ex/Recdef.ML ex/Recdef.thy ex/String.ML ex/String.thy ex/cla.ML \
   284   ex/meson.ML ex/mesontest.ML ex/rel.ML ex/set.ML
   285 	@$(ISATOOL) usedir $(OUT)/HOL ex
   286 
   287 
   288 ## TLA
   289 
   290 TLA: HOL $(OUT)/TLA
   291 
   292 $(OUT)/TLA: $(OUT)/HOL TLA/Action.ML TLA/Action.thy TLA/IntLemmas.ML \
   293   TLA/Intensional.ML TLA/Intensional.thy TLA/ROOT.ML TLA/Stfun.ML \
   294   TLA/Stfun.thy TLA/TLA.ML TLA/TLA.thy TLA/cladata.ML TLA/hypsubst.ML
   295 	@cd TLA; $(ISATOOL) usedir -b $(OUT)/HOL TLA
   296 
   297 
   298 ## TLA-Inc
   299 
   300 TLA-Inc: TLA $(LOG)/TLA-Inc.gz
   301 
   302 $(LOG)/TLA-Inc.gz: $(OUT)/TLA TLA/Inc/Inc.thy TLA/Inc/Inc.ML \
   303   TLA/Inc/Pcount.thy
   304 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Inc
   305 
   306 
   307 ## TLA-Buffer
   308 
   309 TLA-Buffer: TLA $(LOG)/TLA-Buffer.gz
   310 
   311 $(LOG)/TLA-Buffer.gz: $(OUT)/TLA TLA/Buffer/Buffer.thy \
   312   TLA/Buffer/Buffer.ML TLA/Buffer/DBuffer.thy TLA/Buffer/DBuffer.ML
   313 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Buffer
   314 
   315 
   316 ## TLA-Memory
   317 
   318 TLA-Memory: TLA $(LOG)/TLA-Memory.gz
   319 
   320 $(LOG)/TLA-Memory.gz: $(OUT)/TLA TLA/Memory/MIParameters.thy \
   321   TLA/Memory/MIlive.ML TLA/Memory/MIsafe.ML TLA/Memory/MemClerk.ML \
   322   TLA/Memory/MemClerk.thy TLA/Memory/MemClerkParameters.ML \
   323   TLA/Memory/MemClerkParameters.thy TLA/Memory/Memory.ML \
   324   TLA/Memory/Memory.thy TLA/Memory/MemoryImplementation.ML \
   325   TLA/Memory/MemoryImplementation.thy TLA/Memory/MemoryParameters.ML \
   326   TLA/Memory/MemoryParameters.thy TLA/Memory/ProcedureInterface.ML \
   327   TLA/Memory/ProcedureInterface.thy TLA/Memory/RPC.ML TLA/Memory/RPC.thy \
   328   TLA/Memory/RPCMemoryParams.thy TLA/Memory/RPCParameters.ML \
   329   TLA/Memory/RPCParameters.thy
   330 	@cd TLA; $(ISATOOL) usedir $(OUT)/TLA Memory
   331 
   332 
   333 ## clean
   334 
   335 clean:
   336 	@rm -f $(OUT)/HOL $(LOG)/HOL.gz $(LOG)/HOL-Subst.gz \
   337 	  $(LOG)/HOL-Induct.gz $(LOG)/HOL-IMP.gz $(LOG)/HOL-Hoare.gz \
   338 	  $(LOG)/HOL-Lex.gz $(LOG)/HOL-Integ.gz \
   339 	  $(LOG)/HOL-Auth.gz $(LOG)/HOL-UNITY.gz \
   340 	  $(LOG)/HOL-Modelcheck.gz $(LOG)/HOL-Lambda.gz $(LOG)/HOL-W0.gz \
   341 	  $(LOG)/HOL-MiniML.gz $(LOG)/HOL-IOA.gz $(LOG)/HOL-AxClasses.gz \
   342 	  $(LOG)/HOL-AxClasses-Group.gz $(LOG)/HOL-AxClasses-Lattice.gz \
   343 	  $(LOG)/HOL-AxClasses-Tutorial.gz $(LOG)/HOL-Quot.gz \
   344 	  $(LOG)/HOL-ex.gz $(OUT)/TLA $(LOG)/TLA.gz $(LOG)/TLA-Inc.gz \
   345 	  $(LOG)/TLA-Buffer.gz $(LOG)/TLA-Memory.gz