src/Pure/IsaMakefile
author wenzelm
Mon, 09 Nov 2009 21:30:54 +0100
changeset 33540 edf497b5b5d2
parent 33374 8099185908a4
child 33984 c54498f88a77
permissions -rw-r--r--
setup for official Poly/ML 5.3.0, which is now the default;
     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 SHELL = /bin/bash
    16 
    17 SRC = $(ISABELLE_HOME)/src
    18 OUT = $(ISABELLE_OUTPUT)
    19 LOG = $(OUT)/log
    20 
    21 
    22 ## Pure
    23 
    24 BOOTSTRAP_FILES = ML-Systems/compiler_polyml-5.0.ML			\
    25   ML-Systems/compiler_polyml-5.2.ML ML-Systems/compiler_polyml-5.3.ML	\
    26   ML-Systems/exn.ML ML-Systems/ml_name_space.ML				\
    27   ML-Systems/ml_pretty.ML ML-Systems/mosml.ML				\
    28   ML-Systems/multithreading.ML ML-Systems/multithreading_polyml.ML	\
    29   ML-Systems/overloading_smlnj.ML ML-Systems/polyml-5.0.ML		\
    30   ML-Systems/polyml-5.1.ML ML-Systems/polyml-5.2.ML			\
    31   ML-Systems/polyml-5.2.1.ML ML-Systems/polyml.ML			\
    32   ML-Systems/polyml_common.ML ML-Systems/pp_polyml.ML			\
    33   ML-Systems/proper_int.ML ML-Systems/smlnj.ML				\
    34   ML-Systems/system_shell.ML ML-Systems/thread_dummy.ML			\
    35   ML-Systems/timing.ML ML-Systems/time_limit.ML				\
    36   ML-Systems/universal.ML ML-Systems/unsynchronized.ML
    37 
    38 RAW: $(OUT)/RAW
    39 
    40 $(OUT)/RAW: $(BOOTSTRAP_FILES)
    41 	@./mk -r
    42 
    43 
    44 Pure: $(OUT)/Pure
    45 
    46 $(OUT)/Pure: $(BOOTSTRAP_FILES) Concurrent/cache.ML			\
    47   Concurrent/future.ML Concurrent/lazy.ML				\
    48   Concurrent/lazy_sequential.ML Concurrent/mailbox.ML			\
    49   Concurrent/par_list.ML Concurrent/par_list_sequential.ML		\
    50   Concurrent/simple_thread.ML Concurrent/synchronized.ML		\
    51   Concurrent/synchronized_sequential.ML Concurrent/task_queue.ML	\
    52   General/alist.ML General/antiquote.ML General/balanced_tree.ML	\
    53   General/basics.ML General/binding.ML General/buffer.ML		\
    54   General/file.ML General/graph.ML General/heap.ML General/integer.ML	\
    55   General/long_name.ML General/markup.ML General/name_space.ML		\
    56   General/ord_list.ML General/output.ML General/path.ML			\
    57   General/position.ML General/pretty.ML General/print_mode.ML		\
    58   General/properties.ML General/queue.ML General/same.ML		\
    59   General/scan.ML General/secure.ML General/seq.ML General/source.ML	\
    60   General/stack.ML General/symbol.ML General/symbol_pos.ML		\
    61   General/table.ML General/url.ML General/xml.ML General/yxml.ML	\
    62   Isar/args.ML Isar/attrib.ML Isar/auto_bind.ML Isar/calculation.ML	\
    63   Isar/class.ML Isar/class_target.ML Isar/code.ML Isar/constdefs.ML	\
    64   Isar/context_rules.ML Isar/element.ML Isar/expression.ML		\
    65   Isar/isar_cmd.ML Isar/isar_document.ML Isar/isar_syn.ML		\
    66   Isar/local_defs.ML Isar/local_syntax.ML Isar/local_theory.ML		\
    67   Isar/locale.ML Isar/method.ML Isar/object_logic.ML Isar/obtain.ML	\
    68   Isar/outer_keyword.ML Isar/outer_lex.ML Isar/outer_parse.ML		\
    69   Isar/outer_syntax.ML Isar/overloading.ML Isar/proof.ML		\
    70   Isar/proof_context.ML Isar/proof_display.ML Isar/proof_node.ML	\
    71   Isar/rule_cases.ML Isar/rule_insts.ML Isar/runtime.ML			\
    72   Isar/skip_proof.ML Isar/spec_parse.ML Isar/spec_rules.ML		\
    73   Isar/specification.ML Isar/theory_target.ML Isar/toplevel.ML		\
    74   Isar/value_parse.ML ML/ml_antiquote.ML ML/ml_compiler.ML		\
    75   ML/ml_compiler_polyml-5.3.ML ML/ml_context.ML ML/ml_env.ML		\
    76   ML/ml_lex.ML ML/ml_parse.ML ML/ml_syntax.ML ML/ml_thms.ML		\
    77   ML-Systems/install_pp_polyml.ML ML-Systems/install_pp_polyml-5.3.ML	\
    78   ML-Systems/use_context.ML Proof/extraction.ML				\
    79   Proof/proof_rewrite_rules.ML Proof/proof_syntax.ML			\
    80   Proof/proofchecker.ML Proof/reconstruct.ML ProofGeneral/pgip.ML	\
    81   ProofGeneral/pgip_input.ML ProofGeneral/pgip_isabelle.ML		\
    82   ProofGeneral/pgip_markup.ML ProofGeneral/pgip_output.ML		\
    83   ProofGeneral/pgip_parser.ML ProofGeneral/pgip_tests.ML		\
    84   ProofGeneral/pgip_types.ML ProofGeneral/preferences.ML		\
    85   ProofGeneral/proof_general_emacs.ML					\
    86   ProofGeneral/proof_general_pgip.ML Pure.thy ROOT.ML Syntax/ast.ML	\
    87   Syntax/lexicon.ML Syntax/mixfix.ML Syntax/parser.ML			\
    88   Syntax/printer.ML Syntax/simple_syntax.ML Syntax/syn_ext.ML		\
    89   Syntax/syn_trans.ML Syntax/syntax.ML Syntax/type_ext.ML		\
    90   System/isabelle_process.ML System/isar.ML System/session.ML		\
    91   Thy/html.ML Thy/latex.ML Thy/present.ML Thy/term_style.ML		\
    92   Thy/thm_deps.ML Thy/thy_header.ML Thy/thy_info.ML Thy/thy_load.ML	\
    93   Thy/thy_output.ML Thy/thy_syntax.ML Tools/find_consts.ML		\
    94   Tools/find_theorems.ML Tools/named_thms.ML Tools/xml_syntax.ML	\
    95   assumption.ML axclass.ML codegen.ML config.ML conjunction.ML		\
    96   consts.ML context.ML context_position.ML conv.ML defs.ML display.ML	\
    97   drule.ML envir.ML facts.ML goal.ML goal_display.ML interpretation.ML	\
    98   item_net.ML library.ML logic.ML meta_simplifier.ML more_thm.ML	\
    99   morphism.ML name.ML net.ML old_goals.ML old_term.ML pattern.ML	\
   100   primitive_defs.ML proofterm.ML pure_setup.ML pure_thy.ML search.ML	\
   101   sign.ML simplifier.ML sorts.ML subgoal.ML tactic.ML tactical.ML	\
   102   term.ML term_ord.ML term_subst.ML theory.ML thm.ML type.ML		\
   103   type_infer.ML unify.ML variable.ML
   104 	@./mk
   105 
   106 
   107 ## Proof General keywords
   108 
   109 Pure-ProofGeneral: Pure $(LOG)/Pure-ProofGeneral.gz
   110 
   111 $(LOG)/Pure-ProofGeneral.gz: $(OUT)/Pure ProofGeneral/proof_general_keywords.ML
   112 	@$(ISABELLE_TOOL) usedir -f proof_general_keywords.ML $(OUT)/Pure ProofGeneral
   113 
   114 
   115 ## clean
   116 
   117 clean:
   118 	@rm -f $(OUT)/Pure $(LOG)/Pure.gz $(OUT)/RAW $(LOG)/RAW.gz \
   119           $(LOG)/Pure-ProofGeneral.gz
   120 
   121 
   122 ## Scala material
   123 
   124 SCALA_FILES = General/event_bus.scala General/linear_set.scala		\
   125   General/markup.scala General/position.scala General/scan.scala	\
   126   General/swing_thread.scala General/symbol.scala General/xml.scala	\
   127   General/yxml.scala Isar/isar_document.scala Isar/outer_keyword.scala	\
   128   System/cygwin.scala System/gui_setup.scala				\
   129   System/isabelle_process.scala System/isabelle_syntax.scala		\
   130   System/isabelle_system.scala System/platform.scala			\
   131   Thy/completion.scala Thy/thy_header.scala
   132 
   133 JAR_DIR = $(ISABELLE_HOME)/lib/classes
   134 PURE_JAR = $(JAR_DIR)/Pure.jar
   135 FULL_JAR = $(JAR_DIR)/isabelle-scala.jar
   136 
   137 jars: $(FULL_JAR)
   138 
   139 $(FULL_JAR): $(SCALA_FILES)
   140 	@rm -rf classes && mkdir classes
   141 	"$(SCALA_HOME)/bin/scalac" -unchecked -deprecation -d classes -target jvm-1.5 $(SCALA_FILES)
   142 	"$(SCALA_HOME)/bin/scaladoc" -d classes $(SCALA_FILES)
   143 	@cp $(SCALA_FILES) classes/isabelle
   144 	@mkdir -p "$(JAR_DIR)"
   145 	@cd classes; jar cfe `jvmpath "$(PURE_JAR)"` isabelle.GUI_Setup isabelle
   146 	@cd classes; cp "$(SCALA_HOME)/lib/scala-swing.jar" .; jar xf scala-swing.jar; \
   147           cp "$(SCALA_HOME)/lib/scala-library.jar" "$(FULL_JAR)"; \
   148           jar ufe `jvmpath $(FULL_JAR)` isabelle.GUI_Setup isabelle scala
   149 	@rm -rf classes
   150 
   151 clean-jars:
   152 	@rm -f "$(PURE_JAR)" "$(FULL_JAR)"