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