src/Pure/IsaMakefile
author wenzelm
Sat Dec 13 15:00:39 2008 +0100 (2008-12-13)
changeset 29091 b81fe045e799
parent 28952 15a4b2cf8c34
child 29105 8f38bf68d42e
child 29207 a91012d9db21
permissions -rw-r--r--
Context.display_names;
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@27204
    22
Pure: $(OUT)/Pure
wenzelm@2431
    23
wenzelm@28632
    24
$(OUT)/Pure: Concurrent/ROOT.ML Concurrent/future.ML			\
wenzelm@28632
    25
  Concurrent/mailbox.ML Concurrent/par_list.ML				\
wenzelm@28632
    26
  Concurrent/par_list_dummy.ML Concurrent/schedule.ML			\
wenzelm@28632
    27
  Concurrent/simple_thread.ML Concurrent/synchronized.ML		\
wenzelm@28632
    28
  Concurrent/task_queue.ML General/ROOT.ML General/alist.ML		\
wenzelm@28632
    29
  General/balanced_tree.ML General/basics.ML General/buffer.ML		\
wenzelm@28632
    30
  General/file.ML General/graph.ML General/heap.ML General/integer.ML	\
wenzelm@28673
    31
  General/lazy.ML General/markup.ML General/name_space.ML		\
wenzelm@28673
    32
  General/ord_list.ML General/output.ML General/path.ML			\
wenzelm@28673
    33
  General/position.ML General/pretty.ML General/print_mode.ML		\
wenzelm@28673
    34
  General/properties.ML General/queue.ML General/scan.ML		\
wenzelm@28673
    35
  General/secure.ML General/seq.ML General/source.ML General/stack.ML	\
wenzelm@28673
    36
  General/symbol.ML General/symbol_pos.ML General/table.ML		\
wenzelm@28673
    37
  General/url.ML General/xml.ML General/yxml.ML Isar/ROOT.ML		\
wenzelm@28673
    38
  Isar/antiquote.ML Isar/args.ML Isar/attrib.ML Isar/auto_bind.ML	\
wenzelm@28673
    39
  Isar/calculation.ML Isar/class.ML Isar/code.ML Isar/code_unit.ML	\
wenzelm@28673
    40
  Isar/constdefs.ML Isar/context_rules.ML Isar/element.ML		\
ballarin@28697
    41
  Isar/expression.ML							\
wenzelm@28673
    42
  Isar/find_theorems.ML Isar/instance.ML Isar/isar.ML Isar/isar_cmd.ML	\
wenzelm@28673
    43
  Isar/isar_syn.ML Isar/local_defs.ML Isar/local_syntax.ML		\
wenzelm@28673
    44
  Isar/local_theory.ML Isar/locale.ML Isar/method.ML Isar/net_rules.ML	\
ballarin@28795
    45
  Isar/new_locale.ML    \
wenzelm@28673
    46
  Isar/object_logic.ML Isar/obtain.ML Isar/outer_keyword.ML		\
wenzelm@28673
    47
  Isar/outer_lex.ML Isar/outer_parse.ML Isar/outer_syntax.ML		\
wenzelm@28673
    48
  Isar/overloading.ML Isar/proof.ML Isar/proof_context.ML		\
wenzelm@28673
    49
  Isar/proof_display.ML Isar/proof_node.ML Isar/rule_cases.ML		\
wenzelm@28673
    50
  Isar/rule_insts.ML Isar/session.ML Isar/skip_proof.ML			\
wenzelm@28673
    51
  Isar/spec_parse.ML Isar/specification.ML Isar/subclass.ML		\
wenzelm@28673
    52
  Isar/theory_target.ML Isar/toplevel.ML ML-Systems/alice.ML		\
wenzelm@28673
    53
  ML-Systems/exn.ML ML-Systems/install_pp_polyml.ML			\
wenzelm@28673
    54
  ML-Systems/ml_name_space.ML ML-Systems/multithreading.ML		\
wenzelm@28673
    55
  ML-Systems/mosml.ML ML-Systems/multithreading_polyml.ML		\
wenzelm@28673
    56
  ML-Systems/overloading_smlnj.ML ML-Systems/polyml-4.1.3.ML		\
wenzelm@28673
    57
  ML-Systems/polyml-4.1.4.ML ML-Systems/polyml-4.2.0.ML			\
wenzelm@28673
    58
  ML-Systems/polyml-5.0.ML ML-Systems/polyml-5.1.ML			\
wenzelm@28673
    59
  ML-Systems/polyml_common.ML ML-Systems/polyml.ML			\
wenzelm@28673
    60
  ML-Systems/polyml_old_compiler4.ML					\
wenzelm@27204
    61
  ML-Systems/polyml_old_compiler5.ML ML-Systems/proper_int.ML		\
wenzelm@27204
    62
  ML-Systems/smlnj.ML ML-Systems/system_shell.ML			\
wenzelm@28146
    63
  ML-Systems/time_limit.ML ML-Systems/thread_dummy.ML			\
wenzelm@28146
    64
  ML-Systems/universal.ML ML/ml_context.ML ML/ml_antiquote.ML		\
wenzelm@28146
    65
  ML/ml_lex.ML ML/ml_parse.ML ML/ml_syntax.ML ML/ml_thms.ML		\
wenzelm@28146
    66
  Proof/extraction.ML Proof/proof_rewrite_rules.ML			\
wenzelm@27339
    67
  Proof/proof_syntax.ML Proof/proofchecker.ML Proof/reconstruct.ML	\
wenzelm@27339
    68
  ProofGeneral/ROOT.ML ProofGeneral/pgip.ML ProofGeneral/pgip_input.ML	\
wenzelm@26097
    69
  ProofGeneral/pgip_isabelle.ML ProofGeneral/pgip_markup.ML		\
wenzelm@26097
    70
  ProofGeneral/pgip_output.ML ProofGeneral/pgip_parser.ML		\
wenzelm@26097
    71
  ProofGeneral/pgip_tests.ML ProofGeneral/pgip_types.ML			\
wenzelm@28030
    72
  ProofGeneral/preferences.ML ProofGeneral/proof_general_emacs.ML	\
wenzelm@26097
    73
  ProofGeneral/proof_general_pgip.ML Pure.thy ROOT.ML Syntax/ast.ML	\
wenzelm@26097
    74
  Syntax/lexicon.ML Syntax/mixfix.ML Syntax/parser.ML			\
wenzelm@26097
    75
  Syntax/printer.ML Syntax/simple_syntax.ML Syntax/syn_ext.ML		\
wenzelm@26097
    76
  Syntax/syn_trans.ML Syntax/syntax.ML Syntax/type_ext.ML Thy/html.ML	\
wenzelm@26419
    77
  Thy/latex.ML Thy/present.ML Thy/term_style.ML Thy/thm_deps.ML		\
wenzelm@26419
    78
  Thy/thy_edit.ML Thy/thy_header.ML Thy/thy_info.ML Thy/thy_load.ML	\
haftmann@28952
    79
  Thy/thy_output.ML Tools/ROOT.ML Tools/invoke.ML 	\
haftmann@28952
    80
  Tools/isabelle_process.ML Tools/named_thms.ML		\
wenzelm@28266
    81
  Tools/xml_syntax.ML assumption.ML axclass.ML codegen.ML config.ML	\
wenzelm@28404
    82
  conjunction.ML consts.ML context.ML context_position.ML conv.ML	\
wenzelm@28404
    83
  defs.ML display.ML drule.ML envir.ML facts.ML goal.ML			\
wenzelm@28404
    84
  interpretation.ML library.ML logic.ML meta_simplifier.ML more_thm.ML	\
wenzelm@28404
    85
  morphism.ML name.ML net.ML old_goals.ML pattern.ML primitive_defs.ML	\
wenzelm@28404
    86
  proofterm.ML pure_setup.ML pure_thy.ML search.ML sign.ML		\
wenzelm@28404
    87
  simplifier.ML sorts.ML subgoal.ML tactic.ML tctical.ML term.ML	\
wenzelm@28404
    88
  term_subst.ML theory.ML thm.ML type.ML type_infer.ML unify.ML		\
haftmann@28952
    89
  variable.ML ../Tools/value.ML ../Tools/quickcheck.ML
wenzelm@2431
    90
	@./mk
wenzelm@2431
    91
wenzelm@4518
    92
wenzelm@10102
    93
## special targets
wenzelm@10102
    94
wenzelm@24880
    95
Pure-ProofGeneral: Pure $(LOG)/Pure-ProofGeneral.gz
wenzelm@24880
    96
wenzelm@27204
    97
$(LOG)/Pure-ProofGeneral.gz: $(OUT)/Pure ProofGeneral/proof_general_keywords.ML
wenzelm@28500
    98
	@$(ISABELLE_TOOL) usedir -f proof_general_keywords.ML $(OUT)/Pure ProofGeneral
wenzelm@24880
    99
wenzelm@24880
   100
wenzelm@21995
   101
RAW: $(OUT)/RAW
wenzelm@4518
   102
wenzelm@28266
   103
$(OUT)/RAW: ML-Systems/alice.ML ML-Systems/exn.ML		\
wenzelm@28266
   104
  ML-Systems/ml_name_space.ML ML-Systems/multithreading.ML	\
wenzelm@28266
   105
  ML-Systems/mosml.ML ML-Systems/multithreading_polyml.ML	\
wenzelm@28266
   106
  ML-Systems/overloading_smlnj.ML ML-Systems/polyml-4.1.3.ML	\
wenzelm@28266
   107
  ML-Systems/polyml-4.1.4.ML ML-Systems/polyml-4.2.0.ML		\
wenzelm@28266
   108
  ML-Systems/polyml-5.0.ML ML-Systems/polyml-5.1.ML		\
wenzelm@28266
   109
  ML-Systems/polyml_common.ML ML-Systems/polyml.ML		\
wenzelm@28266
   110
  ML-Systems/polyml_old_compiler4.ML				\
wenzelm@28266
   111
  ML-Systems/polyml_old_compiler5.ML ML-Systems/proper_int.ML	\
wenzelm@28266
   112
  ML-Systems/smlnj.ML ML-Systems/system_shell.ML		\
wenzelm@28266
   113
  ML-Systems/time_limit.ML ML-Systems/thread_dummy.ML		\
wenzelm@28146
   114
  ML-Systems/universal.ML
wenzelm@3774
   115
	@./mk -r
wenzelm@3774
   116
wenzelm@4518
   117
wenzelm@4518
   118
## clean
wenzelm@4441
   119
wenzelm@4441
   120
clean:
wenzelm@27204
   121
	@rm -f $(OUT)/Pure $(LOG)/Pure.gz $(LOG)/Pure-ProofGeneral.gz \
wenzelm@24880
   122
          $(OUT)/RAW $(LOG)/RAW.gz
wenzelm@27902
   123
wenzelm@27902
   124
wenzelm@27902
   125
## Scala material
wenzelm@27902
   126
wenzelm@28494
   127
SCALA_FILES = General/markup.scala General/position.scala		\
wenzelm@28494
   128
  General/symbol.scala General/xml.scala General/yxml.scala		\
wenzelm@28494
   129
  Isar/isar.scala Thy/thy_header.scala Tools/isabelle_process.scala	\
wenzelm@28299
   130
  Tools/isabelle_syntax.scala Tools/isabelle_system.scala
wenzelm@27950
   131
wenzelm@27950
   132
wenzelm@27902
   133
SCALA_TARGET = $(ISABELLE_HOME)/lib/classes/Pure.jar
wenzelm@27902
   134
wenzelm@27902
   135
jar: $(SCALA_TARGET)
wenzelm@27902
   136
wenzelm@27902
   137
$(SCALA_TARGET): $(SCALA_FILES)
wenzelm@27902
   138
	@rm -rf classes && mkdir classes
wenzelm@27950
   139
	scalac -deprecation -d classes -target jvm-1.5 $(SCALA_FILES)
wenzelm@27925
   140
	scaladoc -d classes $(SCALA_FILES)
wenzelm@28295
   141
	@cp $(SCALA_FILES) classes/isabelle
wenzelm@27902
   142
	@mkdir -p `dirname $@`
wenzelm@27922
   143
	@cd classes; jar cf $@ isabelle
wenzelm@28003
   144
	@rm -rf classes
wenzelm@27902
   145
wenzelm@27902
   146
clean-jar:
wenzelm@27902
   147
	@rm -f $(SCALA_TARGET)