src/Pure/IsaMakefile
author wenzelm
Mon Jun 01 23:28:06 2009 +0200 (2009-06-01)
changeset 31333 fcd010617e6c
parent 31325 700951b53d21
child 31432 9858f32f9569
permissions -rw-r--r--
added structure ML_Compiler: runtime compilation, with advanced version for Poly/ML 5.3 (formerly ML_Test);
wenzelm@2431
     1
#
wenzelm@4518
     2
# IsaMakefile for Pure
wenzelm@2431
     3
#
wenzelm@2431
     4
wenzelm@4518
     5
## targets
wenzelm@4518
     6
wenzelm@4518
     7
default: Pure
wenzelm@4518
     8
images: Pure
wenzelm@24880
     9
test: RAW Pure-ProofGeneral
wenzelm@4518
    10
all: images test
wenzelm@4518
    11
wenzelm@4518
    12
wenzelm@4518
    13
## global settings
wenzelm@4518
    14
wenzelm@4518
    15
SRC = $(ISABELLE_HOME)/src
wenzelm@3118
    16
OUT = $(ISABELLE_OUTPUT)
wenzelm@4518
    17
LOG = $(OUT)/log
wenzelm@4518
    18
wenzelm@2431
    19
wenzelm@4518
    20
## Pure
wenzelm@4518
    21
wenzelm@31312
    22
BOOTSTRAP_FILES = ML-Systems/compiler_polyml-5.0.ML			\
wenzelm@31312
    23
  ML-Systems/compiler_polyml-5.2.ML ML-Systems/compiler_polyml-5.3.ML	\
wenzelm@31312
    24
  ML-Systems/exn.ML ML-Systems/ml_name_space.ML				\
wenzelm@30619
    25
  ML-Systems/ml_pretty.ML ML-Systems/mosml.ML				\
wenzelm@30619
    26
  ML-Systems/multithreading.ML ML-Systems/multithreading_polyml.ML	\
wenzelm@31308
    27
  ML-Systems/overloading_smlnj.ML ML-Systems/polyml-5.0.ML		\
wenzelm@31308
    28
  ML-Systems/polyml-5.1.ML ML-Systems/polyml-experimental.ML		\
wenzelm@31308
    29
  ML-Systems/polyml.ML ML-Systems/polyml_common.ML			\
wenzelm@31313
    30
  ML-Systems/pp_polyml.ML ML-Systems/proper_int.ML ML-Systems/smlnj.ML	\
wenzelm@30627
    31
  ML-Systems/system_shell.ML ML-Systems/thread_dummy.ML			\
wenzelm@30627
    32
  ML-Systems/time_limit.ML ML-Systems/universal.ML
wenzelm@30141
    33
wenzelm@30141
    34
RAW: $(OUT)/RAW
wenzelm@30141
    35
wenzelm@30141
    36
$(OUT)/RAW: $(BOOTSTRAP_FILES)
wenzelm@30141
    37
	@./mk -r
wenzelm@30141
    38
wenzelm@30141
    39
wenzelm@27204
    40
Pure: $(OUT)/Pure
wenzelm@2431
    41
wenzelm@30980
    42
$(OUT)/Pure: $(BOOTSTRAP_FILES) Concurrent/ROOT.ML			\
wenzelm@30980
    43
  Concurrent/future.ML Concurrent/mailbox.ML Concurrent/par_list.ML	\
wenzelm@29118
    44
  Concurrent/par_list_dummy.ML Concurrent/simple_thread.ML		\
wenzelm@29118
    45
  Concurrent/synchronized.ML Concurrent/task_queue.ML General/ROOT.ML	\
wenzelm@30587
    46
  General/alist.ML General/antiquote.ML General/balanced_tree.ML	\
wenzelm@30587
    47
  General/basics.ML General/binding.ML General/buffer.ML		\
wenzelm@30587
    48
  General/file.ML General/graph.ML General/heap.ML General/integer.ML	\
wenzelm@30587
    49
  General/lazy.ML General/long_name.ML General/markup.ML		\
wenzelm@30587
    50
  General/name_space.ML General/ord_list.ML General/output.ML		\
wenzelm@30587
    51
  General/path.ML General/position.ML General/pretty.ML			\
wenzelm@30587
    52
  General/print_mode.ML General/properties.ML General/queue.ML		\
wenzelm@30587
    53
  General/scan.ML General/secure.ML General/seq.ML General/source.ML	\
wenzelm@30587
    54
  General/stack.ML General/symbol.ML General/symbol_pos.ML		\
wenzelm@30587
    55
  General/table.ML General/url.ML General/xml.ML General/yxml.ML	\
wenzelm@30587
    56
  Isar/ROOT.ML Isar/args.ML Isar/attrib.ML Isar/auto_bind.ML		\
wenzelm@30360
    57
  Isar/calculation.ML Isar/class.ML Isar/class_target.ML Isar/code.ML	\
wenzelm@31325
    58
  Isar/constdefs.ML Isar/context_rules.ML Isar/element.ML		\
wenzelm@31325
    59
  Isar/expression.ML Isar/isar_cmd.ML Isar/isar_document.ML		\
wenzelm@31325
    60
  Isar/isar_syn.ML Isar/local_defs.ML Isar/local_syntax.ML		\
wenzelm@31325
    61
  Isar/local_theory.ML Isar/locale.ML Isar/method.ML			\
wenzelm@31325
    62
  Isar/object_logic.ML Isar/obtain.ML Isar/outer_keyword.ML		\
wenzelm@31325
    63
  Isar/outer_lex.ML Isar/outer_parse.ML Isar/outer_syntax.ML		\
wenzelm@31325
    64
  Isar/overloading.ML Isar/proof.ML Isar/proof_context.ML		\
wenzelm@31325
    65
  Isar/proof_display.ML Isar/proof_node.ML Isar/rule_cases.ML		\
wenzelm@31325
    66
  Isar/rule_insts.ML Isar/skip_proof.ML Isar/spec_parse.ML		\
wenzelm@31325
    67
  Isar/specification.ML Isar/theory_target.ML Isar/toplevel.ML		\
wenzelm@31333
    68
  Isar/value_parse.ML ML/ml_antiquote.ML ML/ml_compiler.ML		\
wenzelm@31333
    69
  ML/ml_compiler_polyml-5.3.ML ML/ml_context.ML ML/ml_env.ML		\
wenzelm@31333
    70
  ML/ml_lex.ML ML/ml_parse.ML ML/ml_syntax.ML ML/ml_thms.ML		\
wenzelm@31333
    71
  ML-Systems/install_pp_polyml.ML					\
wenzelm@30672
    72
  ML-Systems/install_pp_polyml-experimental.ML				\
wenzelm@30672
    73
  ML-Systems/use_context.ML Proof/extraction.ML				\
wenzelm@30141
    74
  Proof/proof_rewrite_rules.ML Proof/proof_syntax.ML			\
wenzelm@30141
    75
  Proof/proofchecker.ML Proof/reconstruct.ML ProofGeneral/ROOT.ML	\
wenzelm@30141
    76
  ProofGeneral/pgip.ML ProofGeneral/pgip_input.ML			\
wenzelm@26097
    77
  ProofGeneral/pgip_isabelle.ML ProofGeneral/pgip_markup.ML		\
wenzelm@26097
    78
  ProofGeneral/pgip_output.ML ProofGeneral/pgip_parser.ML		\
wenzelm@26097
    79
  ProofGeneral/pgip_tests.ML ProofGeneral/pgip_types.ML			\
wenzelm@28030
    80
  ProofGeneral/preferences.ML ProofGeneral/proof_general_emacs.ML	\
wenzelm@26097
    81
  ProofGeneral/proof_general_pgip.ML Pure.thy ROOT.ML Syntax/ast.ML	\
wenzelm@26097
    82
  Syntax/lexicon.ML Syntax/mixfix.ML Syntax/parser.ML			\
wenzelm@26097
    83
  Syntax/printer.ML Syntax/simple_syntax.ML Syntax/syn_ext.ML		\
wenzelm@30173
    84
  Syntax/syn_trans.ML Syntax/syntax.ML Syntax/type_ext.ML		\
wenzelm@30173
    85
  System/isabelle_process.ML System/isar.ML System/session.ML		\
wenzelm@30173
    86
  Thy/html.ML Thy/latex.ML Thy/present.ML Thy/term_style.ML		\
wenzelm@30173
    87
  Thy/thm_deps.ML Thy/thy_header.ML Thy/thy_info.ML Thy/thy_load.ML	\
wenzelm@30173
    88
  Thy/thy_output.ML Thy/thy_syntax.ML Tools/ROOT.ML			\
wenzelm@30980
    89
  Tools/find_consts.ML Tools/find_theorems.ML Tools/named_thms.ML	\
wenzelm@30142
    90
  Tools/xml_syntax.ML assumption.ML axclass.ML codegen.ML config.ML	\
wenzelm@30142
    91
  conjunction.ML consts.ML context.ML context_position.ML conv.ML	\
wenzelm@30142
    92
  defs.ML display.ML drule.ML envir.ML facts.ML goal.ML			\
wenzelm@30559
    93
  interpretation.ML item_net.ML library.ML logic.ML meta_simplifier.ML	\
wenzelm@30559
    94
  more_thm.ML morphism.ML name.ML net.ML old_goals.ML old_term.ML	\
wenzelm@30559
    95
  pattern.ML primitive_defs.ML proofterm.ML pure_setup.ML pure_thy.ML	\
wenzelm@30559
    96
  search.ML sign.ML simplifier.ML sorts.ML subgoal.ML tactic.ML		\
wenzelm@30559
    97
  tctical.ML term.ML term_ord.ML term_subst.ML theory.ML thm.ML		\
wenzelm@30559
    98
  type.ML type_infer.ML unify.ML variable.ML
wenzelm@2431
    99
	@./mk
wenzelm@2431
   100
wenzelm@4518
   101
wenzelm@30141
   102
## Proof General keywords
wenzelm@10102
   103
wenzelm@24880
   104
Pure-ProofGeneral: Pure $(LOG)/Pure-ProofGeneral.gz
wenzelm@24880
   105
wenzelm@27204
   106
$(LOG)/Pure-ProofGeneral.gz: $(OUT)/Pure ProofGeneral/proof_general_keywords.ML
wenzelm@28500
   107
	@$(ISABELLE_TOOL) usedir -f proof_general_keywords.ML $(OUT)/Pure ProofGeneral
wenzelm@24880
   108
wenzelm@24880
   109
wenzelm@4518
   110
## clean
wenzelm@4441
   111
wenzelm@4441
   112
clean:
wenzelm@30141
   113
	@rm -f $(OUT)/Pure $(LOG)/Pure.gz $(OUT)/RAW $(LOG)/RAW.gz \
wenzelm@30141
   114
          $(LOG)/Pure-ProofGeneral.gz
wenzelm@27902
   115
wenzelm@27902
   116
wenzelm@27902
   117
## Scala material
wenzelm@27902
   118
wenzelm@29202
   119
SCALA_FILES = General/event_bus.scala General/markup.scala		\
wenzelm@29202
   120
  General/position.scala General/swing.scala General/symbol.scala	\
wenzelm@29202
   121
  General/xml.scala General/yxml.scala Isar/isar.scala			\
wenzelm@29553
   122
  Isar/isar_document.scala Isar/outer_keyword.scala			\
wenzelm@30174
   123
  System/isabelle_process.scala System/isabelle_system.scala		\
wenzelm@30174
   124
  Thy/thy_header.scala Tools/isabelle_syntax.scala
wenzelm@27950
   125
wenzelm@27950
   126
wenzelm@27902
   127
SCALA_TARGET = $(ISABELLE_HOME)/lib/classes/Pure.jar
wenzelm@27902
   128
wenzelm@27902
   129
jar: $(SCALA_TARGET)
wenzelm@27902
   130
wenzelm@27902
   131
$(SCALA_TARGET): $(SCALA_FILES)
wenzelm@27902
   132
	@rm -rf classes && mkdir classes
wenzelm@27950
   133
	scalac -deprecation -d classes -target jvm-1.5 $(SCALA_FILES)
wenzelm@27925
   134
	scaladoc -d classes $(SCALA_FILES)
wenzelm@28295
   135
	@cp $(SCALA_FILES) classes/isabelle
wenzelm@27902
   136
	@mkdir -p `dirname $@`
wenzelm@27922
   137
	@cd classes; jar cf $@ isabelle
wenzelm@28003
   138
	@rm -rf classes
wenzelm@27902
   139
wenzelm@27902
   140
clean-jar:
wenzelm@27902
   141
	@rm -f $(SCALA_TARGET)