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