doc-src/Tutorial/IsaMakefile
author nipkow
Wed, 07 Oct 1998 13:21:50 +0200
changeset 5621 1fe18aca1062
child 5850 9712294e60b9
permissions -rw-r--r--
runs test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5621
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     1
#
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     2
# IsaMakefile for Tutorial
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     3
#
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     4
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     5
## targets
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     6
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     7
default: HOL-ToyList HOL-Ifexpr HOL-CodeGen HOL-Misc
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     8
1fe18aca1062 runs test
nipkow
parents:
diff changeset
     9
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    10
## global settings
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    11
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    12
SRC = $(ISABELLE_HOME)/src
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    13
OUT = $(ISABELLE_OUTPUT)
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    14
LOG = $(OUT)/log
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    15
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    16
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    17
## HOL
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    18
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    19
HOL:
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    20
	@cd $(SRC)/HOL; $(ISATOOL) make HOL
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    21
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    22
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    23
## HOL-Ifexpr
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    24
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    25
HOL-Ifexpr: HOL $(LOG)/HOL-Ifexpr.gz
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    26
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    27
Ifexpr/Ifexpr.thy: Ifexpr/prolog Ifexpr/boolex Ifexpr/value Ifexpr/ifex \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    28
  Ifexpr/valif Ifexpr/bool2if Ifexpr/normif Ifexpr/norm Ifexpr/normal \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    29
  Ifexpr/end
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    30
	@cd Ifexpr; \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    31
	cat prolog boolex value ifex valif bool2if normif norm normal \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    32
	  end > Ifexpr.thy
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    33
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    34
$(LOG)/HOL-Ifexpr.gz: $(OUT)/HOL Ifexpr/Ifexpr.thy Ifexpr/ROOT.ML
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    35
	@$(ISATOOL) usedir $(OUT)/HOL Ifexpr
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    36
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    37
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    38
## HOL-ToyList
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    39
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    40
HOL-ToyList: HOL $(LOG)/HOL-ToyList.gz
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    41
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    42
ToyList/ToyList.ML: ToyList/autotac ToyList/addsimps2 ToyList/inductxs \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    43
  ToyList/lemma1 ToyList/lemma2 ToyList/lemma3 \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    44
  ToyList/qed1 ToyList/qed2 ToyList/qed3 ToyList/thm ToyList/qed
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    45
	cd ToyList; \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    46
	cat lemma2 inductxs autotac qed2 addsimps2 lemma3 qed3 \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    47
	    lemma1 inductxs autotac qed1 thm inductxs autotac qed > ToyList.ML
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    48
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    49
$(LOG)/HOL-ToyList.gz: $(OUT)/HOL ToyList/ToyList.thy ToyList/ToyList.ML \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    50
  ToyList/ROOT.ML
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    51
	@$(ISATOOL) usedir $(OUT)/HOL ToyList
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    52
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    53
## HOL-CodeGen
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    54
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    55
HOL-CodeGen: HOL $(LOG)/HOL-CodeGen.gz
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    56
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    57
CodeGen/CodeGen.thy: CodeGen/prolog CodeGen/expr CodeGen/value \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    58
  CodeGen/instr CodeGen/exec CodeGen/comp CodeGen/end
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    59
	cd CodeGen; cat prolog expr value instr exec comp end > CodeGen.thy
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    60
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    61
$(LOG)/HOL-CodeGen.gz: $(OUT)/HOL CodeGen/CodeGen.thy CodeGen/goal1.ML \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    62
  CodeGen/goal2.ML CodeGen/simpsplit.ML CodeGen/ROOT.ML
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    63
	@$(ISATOOL) usedir $(OUT)/HOL CodeGen
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    64
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    65
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    66
## HOL-Misc
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    67
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    68
HOL-Misc: HOL $(LOG)/HOL-Misc.gz
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    69
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    70
Misc/Tree.thy: Misc/treeprolog Misc/tree Misc/end
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    71
	cd Misc; cat treeprolog tree end > Tree.thy
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    72
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    73
Misc/NatSum.thy: Misc/natsumprolog Misc/natsum Misc/end
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    74
	cd Misc; cat natsumprolog natsum end > NatSum.thy
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    75
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    76
Misc/Types.thy: Misc/typesprolog Misc/types Misc/end
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    77
	cd Misc; cat typesprolog types end > Types.thy
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    78
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    79
Misc/Defs.thy: Misc/defsprolog Misc/consts Misc/defs Misc/end
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    80
	cd Misc; cat defsprolog consts defs end > Defs.thy
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    81
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    82
Misc/ConstDefs.thy: Misc/constdefsprolog Misc/constdefs Misc/end
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    83
	cd Misc; cat constdefsprolog constdefs end > ConstDefs.thy
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    84
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    85
$(LOG)/HOL-Misc.gz: $(OUT)/HOL Misc/ROOT.ML Misc/exhaust.ML Misc/autotac.ML \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    86
  Misc/Tree.thy Misc/NatSum.thy Misc/NatSum.ML Misc/Types.thy \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    87
  Misc/Defs.thy Misc/ConstDefs.thy \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    88
  Misc/Exor.thy Misc/exorgoal.ML Misc/exorproof.ML \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    89
  Misc/splitif.ML Misc/splitlist.ML Misc/induct_auto.ML \
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    90
  Misc/Itrev.thy Misc/itrev1.ML Misc/itrev2.ML Misc/itrev3.ML
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    91
	@$(ISATOOL) usedir $(OUT)/HOL Misc
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    92
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    93
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    94
## clean
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    95
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    96
clean:
1fe18aca1062 runs test
nipkow
parents:
diff changeset
    97
	@rm -f $(LOG)/HOL-Ifexpr.gz $(LOG)/HOL-Misc.gz