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