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