author | wenzelm |
Sat, 02 Jan 2010 00:08:47 +0100 | |
changeset 34218 | f65c717952c0 |
parent 34217 | 67e1ac2d3b2c |
child 34241 | 8611f1813fc9 |
permissions | -rw-r--r-- |
2431 | 1 |
# |
4518 | 2 |
# IsaMakefile for Pure |
2431 | 3 |
# |
4 |
||
4518 | 5 |
## targets |
6 |
||
7 |
default: Pure |
|
8 |
images: Pure |
|
24880
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
9 |
test: RAW Pure-ProofGeneral |
4518 | 10 |
all: images test |
11 |
||
12 |
||
13 |
## global settings |
|
14 |
||
31702 | 15 |
SHELL = /bin/bash |
16 |
||
4518 | 17 |
SRC = $(ISABELLE_HOME)/src |
3118 | 18 |
OUT = $(ISABELLE_OUTPUT) |
4518 | 19 |
LOG = $(OUT)/log |
20 |
||
2431 | 21 |
|
4518 | 22 |
## Pure |
23 |
||
31312 | 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 \ |
|
34136 | 26 |
ML-Systems/ml_name_space.ML \ |
30619 | 27 |
ML-Systems/ml_pretty.ML ML-Systems/mosml.ML \ |
28 |
ML-Systems/multithreading.ML ML-Systems/multithreading_polyml.ML \ |
|
31308 | 29 |
ML-Systems/overloading_smlnj.ML ML-Systems/polyml-5.0.ML \ |
33538
edf497b5b5d2
setup for official Poly/ML 5.3.0, which is now the default;
wenzelm
parents:
33374
diff
changeset
|
30 |
ML-Systems/polyml-5.1.ML ML-Systems/polyml-5.2.ML \ |
edf497b5b5d2
setup for official Poly/ML 5.3.0, which is now the default;
wenzelm
parents:
33374
diff
changeset
|
31 |
ML-Systems/polyml-5.2.1.ML ML-Systems/polyml.ML \ |
edf497b5b5d2
setup for official Poly/ML 5.3.0, which is now the default;
wenzelm
parents:
33374
diff
changeset
|
32 |
ML-Systems/polyml_common.ML ML-Systems/pp_polyml.ML \ |
edf497b5b5d2
setup for official Poly/ML 5.3.0, which is now the default;
wenzelm
parents:
33374
diff
changeset
|
33 |
ML-Systems/proper_int.ML ML-Systems/smlnj.ML \ |
30627
fb9e73c01603
added polyml_pp.ML: toplevel pretty printing for Poly/ML 4.x and 5.x before 5.3;
wenzelm
parents:
30619
diff
changeset
|
34 |
ML-Systems/system_shell.ML ML-Systems/thread_dummy.ML \ |
31686
e54ae15335a1
more detailed start_timing/end_timing (in timing.ML);
wenzelm
parents:
31648
diff
changeset
|
35 |
ML-Systems/timing.ML ML-Systems/time_limit.ML \ |
32737
76fa673eee8b
Raw ML references as unsynchronized state variables.
wenzelm
parents:
32736
diff
changeset
|
36 |
ML-Systems/universal.ML ML-Systems/unsynchronized.ML |
30141 | 37 |
|
38 |
RAW: $(OUT)/RAW |
|
39 |
||
40 |
$(OUT)/RAW: $(BOOTSTRAP_FILES) |
|
41 |
@./mk -r |
|
42 |
||
43 |
||
27204 | 44 |
Pure: $(OUT)/Pure |
2431 | 45 |
|
32840 | 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 \ |
|
34136 | 54 |
General/exn.ML General/file.ML General/graph.ML General/heap.ML \ |
55 |
General/integer.ML General/long_name.ML General/markup.ML \ |
|
56 |
General/name_space.ML General/ord_list.ML General/output.ML \ |
|
57 |
General/path.ML General/position.ML General/pretty.ML \ |
|
58 |
General/print_mode.ML General/properties.ML General/queue.ML \ |
|
59 |
General/same.ML General/scan.ML General/secure.ML General/seq.ML \ |
|
60 |
General/source.ML General/stack.ML General/symbol.ML \ |
|
61 |
General/symbol_pos.ML General/table.ML General/url.ML General/xml.ML \ |
|
62 |
General/yxml.ML Isar/args.ML Isar/attrib.ML Isar/auto_bind.ML \ |
|
63 |
Isar/calculation.ML Isar/class.ML Isar/class_target.ML Isar/code.ML \ |
|
64 |
Isar/constdefs.ML Isar/context_rules.ML Isar/element.ML \ |
|
65 |
Isar/expression.ML Isar/isar_cmd.ML Isar/isar_document.ML \ |
|
66 |
Isar/isar_syn.ML Isar/local_defs.ML Isar/local_syntax.ML \ |
|
67 |
Isar/local_theory.ML Isar/locale.ML Isar/method.ML \ |
|
68 |
Isar/object_logic.ML Isar/obtain.ML Isar/outer_keyword.ML \ |
|
69 |
Isar/outer_lex.ML Isar/outer_parse.ML Isar/outer_syntax.ML \ |
|
70 |
Isar/overloading.ML Isar/proof.ML Isar/proof_context.ML \ |
|
71 |
Isar/proof_display.ML Isar/proof_node.ML Isar/rule_cases.ML \ |
|
72 |
Isar/rule_insts.ML Isar/runtime.ML Isar/skip_proof.ML \ |
|
73 |
Isar/spec_parse.ML Isar/spec_rules.ML Isar/specification.ML \ |
|
74 |
Isar/theory_target.ML Isar/toplevel.ML Isar/value_parse.ML \ |
|
75 |
ML/ml_antiquote.ML ML/ml_compiler.ML ML/ml_compiler_polyml-5.3.ML \ |
|
76 |
ML/ml_context.ML ML/ml_env.ML ML/ml_lex.ML ML/ml_parse.ML \ |
|
77 |
ML/ml_syntax.ML ML/ml_thms.ML ML-Systems/install_pp_polyml.ML \ |
|
78 |
ML-Systems/install_pp_polyml-5.3.ML ML-Systems/use_context.ML \ |
|
79 |
Proof/extraction.ML Proof/proof_rewrite_rules.ML \ |
|
80 |
Proof/proof_syntax.ML Proof/proofchecker.ML Proof/reconstruct.ML \ |
|
81 |
ProofGeneral/pgip.ML ProofGeneral/pgip_input.ML \ |
|
82 |
ProofGeneral/pgip_isabelle.ML ProofGeneral/pgip_markup.ML \ |
|
83 |
ProofGeneral/pgip_output.ML ProofGeneral/pgip_parser.ML \ |
|
84 |
ProofGeneral/pgip_tests.ML ProofGeneral/pgip_types.ML \ |
|
85 |
ProofGeneral/preferences.ML ProofGeneral/proof_general_emacs.ML \ |
|
26097
943582a2d1e2
removed General/system_process.ML (back to multithreaded version);
wenzelm
parents:
26077
diff
changeset
|
86 |
ProofGeneral/proof_general_pgip.ML Pure.thy ROOT.ML Syntax/ast.ML \ |
943582a2d1e2
removed General/system_process.ML (back to multithreaded version);
wenzelm
parents:
26077
diff
changeset
|
87 |
Syntax/lexicon.ML Syntax/mixfix.ML Syntax/parser.ML \ |
943582a2d1e2
removed General/system_process.ML (back to multithreaded version);
wenzelm
parents:
26077
diff
changeset
|
88 |
Syntax/printer.ML Syntax/simple_syntax.ML Syntax/syn_ext.ML \ |
30173
eabece26b89b
moved isabelle_process.ML, isabelle_process.scala, isar.ML, session.ML to Pure/System/ (together with associated Isar commands);
wenzelm
parents:
30142
diff
changeset
|
89 |
Syntax/syn_trans.ML Syntax/syntax.ML Syntax/type_ext.ML \ |
eabece26b89b
moved isabelle_process.ML, isabelle_process.scala, isar.ML, session.ML to Pure/System/ (together with associated Isar commands);
wenzelm
parents:
30142
diff
changeset
|
90 |
System/isabelle_process.ML System/isar.ML System/session.ML \ |
eabece26b89b
moved isabelle_process.ML, isabelle_process.scala, isar.ML, session.ML to Pure/System/ (together with associated Isar commands);
wenzelm
parents:
30142
diff
changeset
|
91 |
Thy/html.ML Thy/latex.ML Thy/present.ML Thy/term_style.ML \ |
eabece26b89b
moved isabelle_process.ML, isabelle_process.scala, isar.ML, session.ML to Pure/System/ (together with associated Isar commands);
wenzelm
parents:
30142
diff
changeset
|
92 |
Thy/thm_deps.ML Thy/thy_header.ML Thy/thy_info.ML Thy/thy_load.ML \ |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
93 |
Thy/thy_output.ML Thy/thy_syntax.ML Tools/find_consts.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
94 |
Tools/find_theorems.ML Tools/named_thms.ML Tools/xml_syntax.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
95 |
assumption.ML axclass.ML codegen.ML config.ML conjunction.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
96 |
consts.ML context.ML context_position.ML conv.ML defs.ML display.ML \ |
32187 | 97 |
drule.ML envir.ML facts.ML goal.ML goal_display.ML interpretation.ML \ |
32089
568a23753e3a
moved pretty_goals etc. to Display_Goal (required by tracing tacticals);
wenzelm
parents:
32015
diff
changeset
|
98 |
item_net.ML library.ML logic.ML meta_simplifier.ML more_thm.ML \ |
568a23753e3a
moved pretty_goals etc. to Display_Goal (required by tracing tacticals);
wenzelm
parents:
32015
diff
changeset
|
99 |
morphism.ML name.ML net.ML old_goals.ML old_term.ML pattern.ML \ |
568a23753e3a
moved pretty_goals etc. to Display_Goal (required by tracing tacticals);
wenzelm
parents:
32015
diff
changeset
|
100 |
primitive_defs.ML proofterm.ML pure_setup.ML pure_thy.ML search.ML \ |
32169 | 101 |
sign.ML simplifier.ML sorts.ML subgoal.ML tactic.ML tactical.ML \ |
32089
568a23753e3a
moved pretty_goals etc. to Display_Goal (required by tracing tacticals);
wenzelm
parents:
32015
diff
changeset
|
102 |
term.ML term_ord.ML term_subst.ML theory.ML thm.ML type.ML \ |
568a23753e3a
moved pretty_goals etc. to Display_Goal (required by tracing tacticals);
wenzelm
parents:
32015
diff
changeset
|
103 |
type_infer.ML unify.ML variable.ML |
2431 | 104 |
@./mk |
105 |
||
4518 | 106 |
|
30141 | 107 |
## Proof General keywords |
10102 | 108 |
|
24880
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
109 |
Pure-ProofGeneral: Pure $(LOG)/Pure-ProofGeneral.gz |
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
110 |
|
27204 | 111 |
$(LOG)/Pure-ProofGeneral.gz: $(OUT)/Pure ProofGeneral/proof_general_keywords.ML |
28500 | 112 |
@$(ISABELLE_TOOL) usedir -f proof_general_keywords.ML $(OUT)/Pure ProofGeneral |
24880
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
113 |
|
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
114 |
|
4518 | 115 |
## clean |
4441 | 116 |
|
117 |
clean: |
|
30141 | 118 |
@rm -f $(OUT)/Pure $(LOG)/Pure.gz $(OUT)/RAW $(LOG)/RAW.gz \ |
119 |
$(LOG)/Pure-ProofGeneral.gz |
|
27902 | 120 |
|
121 |
||
122 |
## Scala material |
|
123 |
||
34218 | 124 |
SCALA_FILES = Concurrent/future.scala General/download.scala \ |
125 |
General/event_bus.scala General/exn.scala General/linear_set.scala \ |
|
126 |
General/markup.scala General/position.scala General/scan.scala \ |
|
127 |
General/swing_thread.scala General/symbol.scala General/xml.scala \ |
|
128 |
General/yxml.scala Isar/isar_document.scala Isar/outer_keyword.scala \ |
|
34217 | 129 |
Isar/outer_lex.scala Isar/outer_parse.scala Isar/outer_syntax.scala \ |
130 |
System/cygwin.scala System/gui_setup.scala \ |
|
34159
903092d61519
Generic parsers for Isabelle/Isar outer syntax -- Scala version.
wenzelm
parents:
34142
diff
changeset
|
131 |
System/isabelle_process.scala System/isabelle_syntax.scala \ |
903092d61519
Generic parsers for Isabelle/Isar outer syntax -- Scala version.
wenzelm
parents:
34142
diff
changeset
|
132 |
System/isabelle_system.scala System/platform.scala \ |
34201
c95dcd12f48a
separate Standard_System (Cygwin/Posix compatibility) vs. Isabelle_System (settings environment etc.);
wenzelm
parents:
34166
diff
changeset
|
133 |
System/session_manager.scala System/standard_system.scala \ |
c95dcd12f48a
separate Standard_System (Cygwin/Posix compatibility) vs. Isabelle_System (settings environment etc.);
wenzelm
parents:
34166
diff
changeset
|
134 |
Thy/completion.scala Thy/html.scala Thy/thy_header.scala \ |
c95dcd12f48a
separate Standard_System (Cygwin/Posix compatibility) vs. Isabelle_System (settings environment etc.);
wenzelm
parents:
34166
diff
changeset
|
135 |
library.scala |
27950
dbb93a5e6e6a
added Tools/isabelle_process.scala, Tools/isabelle_syntax.scala;
wenzelm
parents:
27929
diff
changeset
|
136 |
|
31845 | 137 |
JAR_DIR = $(ISABELLE_HOME)/lib/classes |
138 |
PURE_JAR = $(JAR_DIR)/Pure.jar |
|
139 |
FULL_JAR = $(JAR_DIR)/isabelle-scala.jar |
|
27902 | 140 |
|
31845 | 141 |
jars: $(FULL_JAR) |
27902 | 142 |
|
31845 | 143 |
$(FULL_JAR): $(SCALA_FILES) |
27902 | 144 |
@rm -rf classes && mkdir classes |
32539 | 145 |
"$(SCALA_HOME)/bin/scalac" -unchecked -deprecation -d classes -target jvm-1.5 $(SCALA_FILES) |
31845 | 146 |
"$(SCALA_HOME)/bin/scaladoc" -d classes $(SCALA_FILES) |
28295 | 147 |
@cp $(SCALA_FILES) classes/isabelle |
31845 | 148 |
@mkdir -p "$(JAR_DIR)" |
149 |
@cd classes; jar cfe `jvmpath "$(PURE_JAR)"` isabelle.GUI_Setup isabelle |
|
150 |
@cd classes; cp "$(SCALA_HOME)/lib/scala-swing.jar" .; jar xf scala-swing.jar; \ |
|
151 |
cp "$(SCALA_HOME)/lib/scala-library.jar" "$(FULL_JAR)"; \ |
|
152 |
jar ufe `jvmpath $(FULL_JAR)` isabelle.GUI_Setup isabelle scala |
|
28003 | 153 |
@rm -rf classes |
27902 | 154 |
|
31831 | 155 |
clean-jars: |
31845 | 156 |
@rm -f "$(PURE_JAR)" "$(FULL_JAR)" |