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