src/Pure/IsaMakefile
author wenzelm
Thu, 11 Sep 2008 13:23:57 +0200
changeset 28198 90dd4068bf61
parent 28164 a6bdc9b31477
child 28227 77221ee0f7b9
permissions -rw-r--r--
added Concurrent/par_list.ML;
     1 #
     2 # $Id$
     3 #
     4 # IsaMakefile for Pure
     5 #
     6 
     7 ## targets
     8 
     9 default: Pure
    10 images: Pure
    11 test: RAW Pure-ProofGeneral
    12 all: images test
    13 
    14 
    15 ## global settings
    16 
    17 SRC = $(ISABELLE_HOME)/src
    18 OUT = $(ISABELLE_OUTPUT)
    19 LOG = $(OUT)/log
    20 
    21 
    22 ## Pure
    23 
    24 Pure: $(OUT)/Pure
    25 
    26 $(OUT)/Pure: Concurrent/future.ML Concurrent/mailbox.ML			\
    27   Concurrent/par_list.ML Concurrent/schedule.ML				\
    28   Concurrent/task_queue.ML General/ROOT.ML General/alist.ML		\
    29   General/balanced_tree.ML General/basics.ML General/buffer.ML		\
    30   General/file.ML General/graph.ML General/heap.ML General/integer.ML	\
    31   General/markup.ML General/name_space.ML General/ord_list.ML		\
    32   General/output.ML General/path.ML General/position.ML			\
    33   General/pretty.ML General/print_mode.ML General/properties.ML		\
    34   General/queue.ML General/scan.ML General/secure.ML General/seq.ML	\
    35   General/source.ML General/stack.ML General/susp.ML General/symbol.ML	\
    36   General/symbol_pos.ML General/table.ML General/url.ML General/xml.ML	\
    37   General/yxml.ML Isar/ROOT.ML Isar/antiquote.ML Isar/args.ML		\
    38   Isar/attrib.ML Isar/auto_bind.ML Isar/calculation.ML Isar/class.ML	\
    39   Isar/code.ML Isar/code_unit.ML Isar/constdefs.ML			\
    40   Isar/context_rules.ML Isar/element.ML Isar/find_theorems.ML		\
    41   Isar/instance.ML Isar/isar.ML Isar/isar_cmd.ML Isar/isar_syn.ML	\
    42   Isar/local_defs.ML Isar/local_syntax.ML Isar/local_theory.ML		\
    43   Isar/locale.ML Isar/method.ML Isar/net_rules.ML Isar/object_logic.ML	\
    44   Isar/obtain.ML Isar/outer_keyword.ML Isar/outer_lex.ML		\
    45   Isar/outer_parse.ML Isar/outer_syntax.ML Isar/overloading.ML		\
    46   Isar/proof.ML Isar/proof_context.ML Isar/proof_display.ML		\
    47   Isar/proof_node.ML Isar/rule_cases.ML Isar/rule_insts.ML		\
    48   Isar/session.ML Isar/skip_proof.ML Isar/spec_parse.ML			\
    49   Isar/specification.ML Isar/subclass.ML Isar/theory_target.ML		\
    50   Isar/toplevel.ML ML-Systems/alice.ML ML-Systems/exn.ML		\
    51   ML-Systems/multithreading.ML ML-Systems/mosml.ML			\
    52   ML-Systems/multithreading_polyml.ML ML-Systems/overloading_smlnj.ML	\
    53   ML-Systems/polyml-4.1.3.ML ML-Systems/polyml-4.1.4.ML			\
    54   ML-Systems/polyml-4.2.0.ML ML-Systems/polyml-5.0.ML			\
    55   ML-Systems/polyml-5.1.ML ML-Systems/polyml_common.ML			\
    56   ML-Systems/polyml.ML ML-Systems/polyml_old_compiler4.ML		\
    57   ML-Systems/polyml_old_compiler5.ML ML-Systems/proper_int.ML		\
    58   ML-Systems/smlnj.ML ML-Systems/system_shell.ML			\
    59   ML-Systems/time_limit.ML ML-Systems/thread_dummy.ML			\
    60   ML-Systems/universal.ML ML/ml_context.ML ML/ml_antiquote.ML		\
    61   ML/ml_lex.ML ML/ml_parse.ML ML/ml_syntax.ML ML/ml_thms.ML		\
    62   Proof/extraction.ML Proof/proof_rewrite_rules.ML			\
    63   Proof/proof_syntax.ML Proof/proofchecker.ML Proof/reconstruct.ML	\
    64   ProofGeneral/ROOT.ML ProofGeneral/pgip.ML ProofGeneral/pgip_input.ML	\
    65   ProofGeneral/pgip_isabelle.ML ProofGeneral/pgip_markup.ML		\
    66   ProofGeneral/pgip_output.ML ProofGeneral/pgip_parser.ML		\
    67   ProofGeneral/pgip_tests.ML ProofGeneral/pgip_types.ML			\
    68   ProofGeneral/preferences.ML ProofGeneral/proof_general_emacs.ML	\
    69   ProofGeneral/proof_general_pgip.ML Pure.thy ROOT.ML Syntax/ast.ML	\
    70   Syntax/lexicon.ML Syntax/mixfix.ML Syntax/parser.ML			\
    71   Syntax/printer.ML Syntax/simple_syntax.ML Syntax/syn_ext.ML		\
    72   Syntax/syn_trans.ML Syntax/syntax.ML Syntax/type_ext.ML Thy/html.ML	\
    73   Thy/latex.ML Thy/present.ML Thy/term_style.ML Thy/thm_deps.ML		\
    74   Thy/thy_edit.ML Thy/thy_header.ML Thy/thy_info.ML Thy/thy_load.ML	\
    75   Thy/thy_output.ML Tools/ROOT.ML Tools/invoke.ML			\
    76   Tools/isabelle_process.ML Tools/named_thms.ML Tools/xml_syntax.ML	\
    77   assumption.ML axclass.ML codegen.ML config.ML conjunction.ML		\
    78   consts.ML context.ML conv.ML defs.ML display.ML drule.ML envir.ML	\
    79   facts.ML goal.ML interpretation.ML library.ML logic.ML		\
    80   meta_simplifier.ML more_thm.ML morphism.ML name.ML net.ML		\
    81   old_goals.ML pattern.ML primitive_defs.ML proofterm.ML pure_setup.ML	\
    82   pure_thy.ML search.ML sign.ML simplifier.ML sorts.ML subgoal.ML	\
    83   tactic.ML tctical.ML term.ML term_subst.ML theory.ML thm.ML type.ML	\
    84   type_infer.ML unify.ML variable.ML
    85 	@./mk
    86 
    87 
    88 ## special targets
    89 
    90 Pure-ProofGeneral: Pure $(LOG)/Pure-ProofGeneral.gz
    91 
    92 $(LOG)/Pure-ProofGeneral.gz: $(OUT)/Pure ProofGeneral/proof_general_keywords.ML
    93 	@$(ISATOOL) usedir -f proof_general_keywords.ML $(OUT)/Pure ProofGeneral
    94 
    95 
    96 RAW: $(OUT)/RAW
    97 
    98 $(OUT)/RAW: ML-Systems/alice.ML ML-Systems/exn.ML			\
    99   ML-Systems/multithreading.ML ML-Systems/mosml.ML			\
   100   ML-Systems/multithreading_polyml.ML ML-Systems/overloading_smlnj.ML	\
   101   ML-Systems/polyml-4.1.3.ML ML-Systems/polyml-4.1.4.ML			\
   102   ML-Systems/polyml-4.2.0.ML ML-Systems/polyml-5.0.ML			\
   103   ML-Systems/polyml-5.1.ML ML-Systems/polyml_common.ML			\
   104   ML-Systems/polyml.ML ML-Systems/polyml_old_compiler4.ML		\
   105   ML-Systems/polyml_old_compiler5.ML ML-Systems/proper_int.ML		\
   106   ML-Systems/smlnj.ML ML-Systems/system_shell.ML			\
   107   ML-Systems/thread_dummy.ML ML-Systems/time_limit.ML			\
   108   ML-Systems/universal.ML
   109 	@./mk -r
   110 
   111 
   112 ## clean
   113 
   114 clean:
   115 	@rm -f $(OUT)/Pure $(LOG)/Pure.gz $(LOG)/Pure-ProofGeneral.gz \
   116           $(OUT)/RAW $(LOG)/RAW.gz
   117 
   118 
   119 ## Scala material
   120 
   121 SCALA_FILES = General/markup.scala General/position.scala	\
   122   General/symbol.scala General/xml.scala General/yxml.scala	\
   123   Tools/isabelle_process.scala Tools/isabelle_syntax.scala	\
   124   Tools/isabelle_system.scala
   125 
   126 
   127 SCALA_TARGET = $(ISABELLE_HOME)/lib/classes/Pure.jar
   128 
   129 jar: $(SCALA_TARGET)
   130 
   131 $(SCALA_TARGET): $(SCALA_FILES)
   132 	@rm -rf classes && mkdir classes
   133 	scalac -deprecation -d classes -target jvm-1.5 $(SCALA_FILES)
   134 	scaladoc -d classes $(SCALA_FILES)
   135 	@mkdir -p `dirname $@`
   136 	@cd classes; jar cf $@ isabelle
   137 	@rm -rf classes
   138 
   139 clean-jar:
   140 	@rm -f $(SCALA_TARGET)