src/Pure/IsaMakefile
author kleing
Fri, 13 Feb 2009 07:53:38 +1100
changeset 29819 29154e67731d
parent 29795 c8cee17d7e50
child 30141 c59a1258559b
child 30240 5b25fee0362c
permissions -rw-r--r--
New command find_consts searching for constants by type (by Timothy Bourke).
     1 #
     2 # IsaMakefile for Pure
     3 #
     4 
     5 ## targets
     6 
     7 default: Pure
     8 images: Pure
     9 test: RAW Pure-ProofGeneral
    10 all: images test
    11 
    12 
    13 ## global settings
    14 
    15 SRC = $(ISABELLE_HOME)/src
    16 OUT = $(ISABELLE_OUTPUT)
    17 LOG = $(OUT)/log
    18 
    19 
    20 ## Pure
    21 
    22 Pure: $(OUT)/Pure
    23 
    24 $(OUT)/Pure: Concurrent/ROOT.ML Concurrent/future.ML			\
    25   Concurrent/mailbox.ML Concurrent/par_list.ML				\
    26   Concurrent/par_list_dummy.ML Concurrent/simple_thread.ML		\
    27   Concurrent/synchronized.ML Concurrent/task_queue.ML General/ROOT.ML	\
    28   General/alist.ML General/balanced_tree.ML General/basics.ML		\
    29   General/binding.ML General/buffer.ML General/file.ML			\
    30   General/graph.ML General/heap.ML General/integer.ML General/lazy.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/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/class_target.ML Isar/code.ML Isar/code_unit.ML			\
    40   Isar/constdefs.ML Isar/context_rules.ML Isar/element.ML		\
    41   Isar/expression.ML Isar/find_theorems.ML Isar/find_consts.ML          \
    42   Isar/isar.ML Isar/isar_document.ML Isar/isar_cmd.ML Isar/isar_syn.ML	\
    43   Isar/local_defs.ML Isar/local_syntax.ML Isar/local_theory.ML		\
    44   Isar/locale.ML Isar/method.ML Isar/net_rules.ML			\
    45   Isar/object_logic.ML Isar/obtain.ML Isar/outer_keyword.ML		\
    46   Isar/outer_lex.ML Isar/outer_parse.ML Isar/outer_syntax.ML		\
    47   Isar/overloading.ML Isar/proof.ML Isar/proof_context.ML		\
    48   Isar/proof_display.ML Isar/proof_node.ML Isar/rule_cases.ML		\
    49   Isar/rule_insts.ML Isar/session.ML Isar/skip_proof.ML			\
    50   Isar/spec_parse.ML Isar/specification.ML Isar/theory_target.ML	\
    51   Isar/toplevel.ML Isar/value_parse.ML ML-Systems/alice.ML		\
    52   ML-Systems/exn.ML ML-Systems/install_pp_polyml.ML			\
    53   ML-Systems/ml_name_space.ML ML-Systems/multithreading.ML		\
    54   ML-Systems/mosml.ML ML-Systems/multithreading_polyml.ML		\
    55   ML-Systems/overloading_smlnj.ML ML-Systems/polyml-4.1.3.ML		\
    56   ML-Systems/polyml-4.1.4.ML ML-Systems/polyml-4.2.0.ML			\
    57   ML-Systems/polyml-5.0.ML ML-Systems/polyml-5.1.ML			\
    58   ML-Systems/polyml_common.ML ML-Systems/polyml.ML			\
    59   ML-Systems/polyml_old_compiler4.ML					\
    60   ML-Systems/polyml_old_compiler5.ML ML-Systems/proper_int.ML		\
    61   ML-Systems/smlnj.ML ML-Systems/system_shell.ML			\
    62   ML-Systems/time_limit.ML ML-Systems/thread_dummy.ML			\
    63   ML-Systems/universal.ML ML/ml_context.ML ML/ml_antiquote.ML		\
    64   ML/ml_lex.ML ML/ml_parse.ML ML/ml_syntax.ML ML/ml_thms.ML		\
    65   Proof/extraction.ML Proof/proof_rewrite_rules.ML			\
    66   Proof/proof_syntax.ML Proof/proofchecker.ML Proof/reconstruct.ML	\
    67   ProofGeneral/ROOT.ML ProofGeneral/pgip.ML ProofGeneral/pgip_input.ML	\
    68   ProofGeneral/pgip_isabelle.ML ProofGeneral/pgip_markup.ML		\
    69   ProofGeneral/pgip_output.ML ProofGeneral/pgip_parser.ML		\
    70   ProofGeneral/pgip_tests.ML ProofGeneral/pgip_types.ML			\
    71   ProofGeneral/preferences.ML ProofGeneral/proof_general_emacs.ML	\
    72   ProofGeneral/proof_general_pgip.ML Pure.thy ROOT.ML Syntax/ast.ML	\
    73   Syntax/lexicon.ML Syntax/mixfix.ML Syntax/parser.ML			\
    74   Syntax/printer.ML Syntax/simple_syntax.ML Syntax/syn_ext.ML		\
    75   Syntax/syn_trans.ML Syntax/syntax.ML Syntax/type_ext.ML Thy/html.ML	\
    76   Thy/latex.ML Thy/present.ML Thy/term_style.ML Thy/thm_deps.ML		\
    77   Thy/thy_header.ML Thy/thy_info.ML Thy/thy_load.ML Thy/thy_output.ML	\
    78   Thy/thy_syntax.ML Tools/ROOT.ML			\
    79   Tools/isabelle_process.ML Tools/named_thms.ML Tools/xml_syntax.ML	\
    80   assumption.ML axclass.ML codegen.ML config.ML conjunction.ML		\
    81   consts.ML context.ML context_position.ML conv.ML defs.ML display.ML	\
    82   drule.ML envir.ML facts.ML goal.ML interpretation.ML library.ML	\
    83   logic.ML meta_simplifier.ML more_thm.ML morphism.ML name.ML net.ML	\
    84   old_goals.ML old_term.ML pattern.ML primitive_defs.ML proofterm.ML	\
    85   pure_setup.ML pure_thy.ML search.ML sign.ML simplifier.ML sorts.ML	\
    86   subgoal.ML tactic.ML tctical.ML term.ML term_ord.ML term_subst.ML	\
    87   theory.ML thm.ML type.ML type_infer.ML unify.ML variable.ML		\
    88   ../Tools/quickcheck.ML ../Tools/auto_solve.ML
    89 	@./mk
    90 
    91 
    92 ## special targets
    93 
    94 Pure-ProofGeneral: Pure $(LOG)/Pure-ProofGeneral.gz
    95 
    96 $(LOG)/Pure-ProofGeneral.gz: $(OUT)/Pure ProofGeneral/proof_general_keywords.ML
    97 	@$(ISABELLE_TOOL) usedir -f proof_general_keywords.ML $(OUT)/Pure ProofGeneral
    98 
    99 
   100 RAW: $(OUT)/RAW
   101 
   102 $(OUT)/RAW: ML-Systems/alice.ML ML-Systems/exn.ML		\
   103   ML-Systems/ml_name_space.ML ML-Systems/multithreading.ML	\
   104   ML-Systems/mosml.ML ML-Systems/multithreading_polyml.ML	\
   105   ML-Systems/overloading_smlnj.ML ML-Systems/polyml-4.1.3.ML	\
   106   ML-Systems/polyml-4.1.4.ML ML-Systems/polyml-4.2.0.ML		\
   107   ML-Systems/polyml-5.0.ML ML-Systems/polyml-5.1.ML		\
   108   ML-Systems/polyml_common.ML ML-Systems/polyml.ML		\
   109   ML-Systems/polyml_old_compiler4.ML				\
   110   ML-Systems/polyml_old_compiler5.ML ML-Systems/proper_int.ML	\
   111   ML-Systems/smlnj.ML ML-Systems/system_shell.ML		\
   112   ML-Systems/time_limit.ML ML-Systems/thread_dummy.ML		\
   113   ML-Systems/universal.ML
   114 	@./mk -r
   115 
   116 
   117 ## clean
   118 
   119 clean:
   120 	@rm -f $(OUT)/Pure $(LOG)/Pure.gz $(LOG)/Pure-ProofGeneral.gz \
   121           $(OUT)/RAW $(LOG)/RAW.gz
   122 
   123 
   124 ## Scala material
   125 
   126 SCALA_FILES = General/event_bus.scala General/markup.scala		\
   127   General/position.scala General/swing.scala General/symbol.scala	\
   128   General/xml.scala General/yxml.scala Isar/isar.scala			\
   129   Isar/isar_document.scala Isar/outer_keyword.scala			\
   130   Thy/thy_header.scala Tools/isabelle_process.scala			\
   131   Tools/isabelle_syntax.scala Tools/isabelle_system.scala
   132 
   133 
   134 SCALA_TARGET = $(ISABELLE_HOME)/lib/classes/Pure.jar
   135 
   136 jar: $(SCALA_TARGET)
   137 
   138 $(SCALA_TARGET): $(SCALA_FILES)
   139 	@rm -rf classes && mkdir classes
   140 	scalac -deprecation -d classes -target jvm-1.5 $(SCALA_FILES)
   141 	scaladoc -d classes $(SCALA_FILES)
   142 	@cp $(SCALA_FILES) classes/isabelle
   143 	@mkdir -p `dirname $@`
   144 	@cd classes; jar cf $@ isabelle
   145 	@rm -rf classes
   146 
   147 clean-jar:
   148 	@rm -f $(SCALA_TARGET)