author | wenzelm |
Sun, 28 Jun 2009 16:01:52 +0200 | |
changeset 31827 | b54362b9fbef |
parent 31825 | d47a9dc1f064 |
child 31830 | 4c721440ee62 |
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 \ |
|
26 |
ML-Systems/exn.ML 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 \ |
30 |
ML-Systems/polyml-5.1.ML ML-Systems/polyml-experimental.ML \ |
|
31 |
ML-Systems/polyml.ML ML-Systems/polyml_common.ML \ |
|
31313 | 32 |
ML-Systems/pp_polyml.ML 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
|
33 |
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
|
34 |
ML-Systems/timing.ML ML-Systems/time_limit.ML \ |
e54ae15335a1
more detailed start_timing/end_timing (in timing.ML);
wenzelm
parents:
31648
diff
changeset
|
35 |
ML-Systems/universal.ML |
30141 | 36 |
|
37 |
RAW: $(OUT)/RAW |
|
38 |
||
39 |
$(OUT)/RAW: $(BOOTSTRAP_FILES) |
|
40 |
@./mk -r |
|
41 |
||
42 |
||
27204 | 43 |
Pure: $(OUT)/Pure |
2431 | 44 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
45 |
$(OUT)/Pure: $(BOOTSTRAP_FILES) Concurrent/future.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
46 |
Concurrent/mailbox.ML Concurrent/par_list.ML \ |
29118 | 47 |
Concurrent/par_list_dummy.ML Concurrent/simple_thread.ML \ |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
48 |
Concurrent/synchronized.ML Concurrent/task_queue.ML General/alist.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
49 |
General/antiquote.ML General/balanced_tree.ML General/basics.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
50 |
General/binding.ML General/buffer.ML General/file.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
51 |
General/graph.ML General/heap.ML General/integer.ML General/lazy.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
52 |
General/long_name.ML General/markup.ML General/name_space.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
53 |
General/ord_list.ML General/output.ML General/path.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
54 |
General/position.ML General/pretty.ML General/print_mode.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
55 |
General/properties.ML General/queue.ML General/scan.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
56 |
General/secure.ML General/seq.ML General/source.ML General/stack.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
57 |
General/symbol.ML General/symbol_pos.ML General/table.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
58 |
General/url.ML General/xml.ML General/yxml.ML Isar/args.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
59 |
Isar/attrib.ML Isar/auto_bind.ML Isar/calculation.ML Isar/class.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
60 |
Isar/class_target.ML Isar/code.ML Isar/constdefs.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
61 |
Isar/context_rules.ML Isar/element.ML Isar/expression.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
62 |
Isar/isar_cmd.ML Isar/isar_document.ML Isar/isar_syn.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
63 |
Isar/local_defs.ML Isar/local_syntax.ML Isar/local_theory.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
64 |
Isar/locale.ML Isar/method.ML Isar/object_logic.ML Isar/obtain.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
65 |
Isar/outer_keyword.ML Isar/outer_lex.ML Isar/outer_parse.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
66 |
Isar/outer_syntax.ML Isar/overloading.ML Isar/proof.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
67 |
Isar/proof_context.ML Isar/proof_display.ML Isar/proof_node.ML \ |
31476
c5d2899b6de9
moved Isar toplevel runtime support to runtime.ML, which is loaded early (before ml_compiler.ML);
wenzelm
parents:
31433
diff
changeset
|
68 |
Isar/rule_cases.ML Isar/rule_insts.ML Isar/runtime.ML \ |
c5d2899b6de9
moved Isar toplevel runtime support to runtime.ML, which is loaded early (before ml_compiler.ML);
wenzelm
parents:
31433
diff
changeset
|
69 |
Isar/skip_proof.ML Isar/spec_parse.ML Isar/specification.ML \ |
c5d2899b6de9
moved Isar toplevel runtime support to runtime.ML, which is loaded early (before ml_compiler.ML);
wenzelm
parents:
31433
diff
changeset
|
70 |
Isar/theory_target.ML Isar/toplevel.ML Isar/value_parse.ML \ |
c5d2899b6de9
moved Isar toplevel runtime support to runtime.ML, which is loaded early (before ml_compiler.ML);
wenzelm
parents:
31433
diff
changeset
|
71 |
ML/ml_antiquote.ML ML/ml_compiler.ML ML/ml_compiler_polyml-5.3.ML \ |
c5d2899b6de9
moved Isar toplevel runtime support to runtime.ML, which is loaded early (before ml_compiler.ML);
wenzelm
parents:
31433
diff
changeset
|
72 |
ML/ml_context.ML ML/ml_env.ML ML/ml_lex.ML ML/ml_parse.ML \ |
c5d2899b6de9
moved Isar toplevel runtime support to runtime.ML, which is loaded early (before ml_compiler.ML);
wenzelm
parents:
31433
diff
changeset
|
73 |
ML/ml_syntax.ML ML/ml_thms.ML ML-Systems/install_pp_polyml.ML \ |
31433 | 74 |
ML-Systems/install_pp_polyml-5.3.ML ML-Systems/use_context.ML \ |
75 |
Proof/extraction.ML Proof/proof_rewrite_rules.ML \ |
|
76 |
Proof/proof_syntax.ML Proof/proofchecker.ML Proof/reconstruct.ML \ |
|
77 |
ProofGeneral/pgip.ML ProofGeneral/pgip_input.ML \ |
|
78 |
ProofGeneral/pgip_isabelle.ML ProofGeneral/pgip_markup.ML \ |
|
79 |
ProofGeneral/pgip_output.ML ProofGeneral/pgip_parser.ML \ |
|
80 |
ProofGeneral/pgip_tests.ML ProofGeneral/pgip_types.ML \ |
|
81 |
ProofGeneral/preferences.ML ProofGeneral/proof_general_emacs.ML \ |
|
26097
943582a2d1e2
removed General/system_process.ML (back to multithreaded version);
wenzelm
parents:
26077
diff
changeset
|
82 |
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
|
83 |
Syntax/lexicon.ML Syntax/mixfix.ML Syntax/parser.ML \ |
943582a2d1e2
removed General/system_process.ML (back to multithreaded version);
wenzelm
parents:
26077
diff
changeset
|
84 |
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
|
85 |
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
|
86 |
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
|
87 |
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
|
88 |
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
|
89 |
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
|
90 |
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
|
91 |
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
|
92 |
consts.ML context.ML context_position.ML conv.ML defs.ML display.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
93 |
drule.ML envir.ML facts.ML goal.ML interpretation.ML item_net.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
94 |
library.ML logic.ML meta_simplifier.ML more_thm.ML morphism.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
95 |
name.ML net.ML old_goals.ML old_term.ML pattern.ML primitive_defs.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
96 |
proofterm.ML pure_setup.ML pure_thy.ML search.ML sign.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
97 |
simplifier.ML sorts.ML subgoal.ML tactic.ML tctical.ML term.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
98 |
term_ord.ML term_subst.ML theory.ML thm.ML type.ML type_infer.ML \ |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31333
diff
changeset
|
99 |
unify.ML variable.ML |
2431 | 100 |
@./mk |
101 |
||
4518 | 102 |
|
30141 | 103 |
## Proof General keywords |
10102 | 104 |
|
24880
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
105 |
Pure-ProofGeneral: Pure $(LOG)/Pure-ProofGeneral.gz |
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
106 |
|
27204 | 107 |
$(LOG)/Pure-ProofGeneral.gz: $(OUT)/Pure ProofGeneral/proof_general_keywords.ML |
28500 | 108 |
@$(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
|
109 |
|
c827d25b2983
added Pure-ProofGeneral target (dummy session with outer syntax keyword initialization);
wenzelm
parents:
24830
diff
changeset
|
110 |
|
4518 | 111 |
## clean |
4441 | 112 |
|
113 |
clean: |
|
30141 | 114 |
@rm -f $(OUT)/Pure $(LOG)/Pure.gz $(OUT)/RAW $(LOG)/RAW.gz \ |
115 |
$(LOG)/Pure-ProofGeneral.gz |
|
27902 | 116 |
|
117 |
||
118 |
## Scala material |
|
119 |
||
29202 | 120 |
SCALA_FILES = General/event_bus.scala General/markup.scala \ |
31648 | 121 |
General/position.scala General/scan.scala General/swing.scala \ |
122 |
General/symbol.scala General/xml.scala General/yxml.scala \ |
|
123 |
Isar/isar.scala Isar/isar_document.scala Isar/outer_keyword.scala \ |
|
31827
b54362b9fbef
minimal GUI_Setup, which is the main class of Pure.jar;
wenzelm
parents:
31825
diff
changeset
|
124 |
System/cygwin.scala System/gui_setup.scala \ |
b54362b9fbef
minimal GUI_Setup, which is the main class of Pure.jar;
wenzelm
parents:
31825
diff
changeset
|
125 |
System/isabelle_process.scala System/isabelle_system.scala \ |
b54362b9fbef
minimal GUI_Setup, which is the main class of Pure.jar;
wenzelm
parents:
31825
diff
changeset
|
126 |
System/platform.scala Thy/completion.scala Thy/thy_header.scala \ |
31825 | 127 |
Tools/isabelle_syntax.scala |
27950
dbb93a5e6e6a
added Tools/isabelle_process.scala, Tools/isabelle_syntax.scala;
wenzelm
parents:
27929
diff
changeset
|
128 |
|
dbb93a5e6e6a
added Tools/isabelle_process.scala, Tools/isabelle_syntax.scala;
wenzelm
parents:
27929
diff
changeset
|
129 |
|
27902 | 130 |
SCALA_TARGET = $(ISABELLE_HOME)/lib/classes/Pure.jar |
131 |
||
132 |
jar: $(SCALA_TARGET) |
|
133 |
||
134 |
$(SCALA_TARGET): $(SCALA_FILES) |
|
135 |
@rm -rf classes && mkdir classes |
|
27950
dbb93a5e6e6a
added Tools/isabelle_process.scala, Tools/isabelle_syntax.scala;
wenzelm
parents:
27929
diff
changeset
|
136 |
scalac -deprecation -d classes -target jvm-1.5 $(SCALA_FILES) |
27925 | 137 |
scaladoc -d classes $(SCALA_FILES) |
28295 | 138 |
@cp $(SCALA_FILES) classes/isabelle |
27902 | 139 |
@mkdir -p `dirname $@` |
31827
b54362b9fbef
minimal GUI_Setup, which is the main class of Pure.jar;
wenzelm
parents:
31825
diff
changeset
|
140 |
@cd classes; jar cfe `jvmpath $@` isabelle.GUI_Setup isabelle |
28003 | 141 |
@rm -rf classes |
27902 | 142 |
|
143 |
clean-jar: |
|
144 |
@rm -f $(SCALA_TARGET) |