doc-src/TutorialI/IsaMakefile
author nipkow
Wed Oct 11 10:44:42 2000 +0200 (2000-10-11)
changeset 10187 0376cccd9118
parent 10186 499637e8f2c6
child 10212 33fe2d701ddd
permissions -rw-r--r--
*** empty log message ***
nipkow@8743
     1
#
nipkow@8743
     2
# IsaMakefile for Tutorial
nipkow@8743
     3
#
nipkow@8743
     4
nipkow@8743
     5
## targets
nipkow@8743
     6
nipkow@9958
     7
default: HOL-ToyList HOL-Ifexpr HOL-CodeGen HOL-Trie HOL-Datatype HOL-Recdef HOL-Advanced HOL-CTL HOL-Misc styles
wenzelm@9520
     8
images:
wenzelm@9520
     9
test:
wenzelm@9520
    10
all: default
nipkow@8743
    11
nipkow@8743
    12
nipkow@8743
    13
## global settings
nipkow@8743
    14
nipkow@8743
    15
SRC = $(ISABELLE_HOME)/src
nipkow@8743
    16
OUT = $(ISABELLE_OUTPUT)
nipkow@8743
    17
LOG = $(OUT)/log
nipkow@8743
    18
nipkow@8743
    19
nipkow@8743
    20
## HOL
nipkow@8743
    21
nipkow@8743
    22
HOL:
nipkow@8743
    23
	@cd $(SRC)/HOL; $(ISATOOL) make HOL
nipkow@8743
    24
wenzelm@8825
    25
styles:
wenzelm@8847
    26
	@$(ISATOOL) latex -o sty >/dev/null
wenzelm@8847
    27
	@rm -f pdfsetup.sty
wenzelm@8825
    28
	@rm -f */document/isabelle.sty
wenzelm@8825
    29
	@rm -f */document/isabellesym.sty
wenzelm@8825
    30
	@rm -f */document/pdfsetup.sty
wenzelm@10002
    31
	@rm -f */document/session.tex
nipkow@8743
    32
nipkow@8743
    33
nipkow@8743
    34
## HOL-Ifexpr
nipkow@8743
    35
nipkow@8743
    36
HOL-Ifexpr: HOL $(LOG)/HOL-Ifexpr.gz
nipkow@8743
    37
nipkow@8743
    38
$(LOG)/HOL-Ifexpr.gz: $(OUT)/HOL Ifexpr/Ifexpr.thy Ifexpr/ROOT.ML
nipkow@8743
    39
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Ifexpr
nipkow@8754
    40
	@rm -f tutorial.dvi
nipkow@8743
    41
nipkow@8743
    42
## HOL-ToyList
nipkow@8743
    43
nipkow@8743
    44
HOL-ToyList: HOL $(LOG)/HOL-ToyList.gz $(LOG)/HOL-ToyList2.gz
nipkow@8743
    45
nipkow@8743
    46
ToyList2/ToyList.thy: ToyList2/ToyList1 ToyList2/ToyList2
nipkow@8743
    47
	cat ToyList2/ToyList1 ToyList2/ToyList2 > ToyList2/ToyList.thy
nipkow@8743
    48
nipkow@8743
    49
$(LOG)/HOL-ToyList2.gz: $(OUT)/HOL ToyList2/ToyList.thy ToyList2/ROOT.ML
nipkow@8743
    50
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList2
nipkow@8754
    51
	@rm -f tutorial.dvi
nipkow@8743
    52
nipkow@8743
    53
$(LOG)/HOL-ToyList.gz: $(OUT)/HOL ToyList/ToyList.thy ToyList/ROOT.ML
nipkow@8743
    54
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList
nipkow@8754
    55
	@rm -f tutorial.dvi
nipkow@8743
    56
nipkow@8743
    57
## HOL-CodeGen
nipkow@8743
    58
nipkow@8743
    59
HOL-CodeGen: HOL $(LOG)/HOL-CodeGen.gz
nipkow@8743
    60
nipkow@8743
    61
$(LOG)/HOL-CodeGen.gz: $(OUT)/HOL CodeGen/CodeGen.thy
nipkow@8743
    62
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL CodeGen
nipkow@8754
    63
	@rm -f tutorial.dvi
nipkow@8743
    64
nipkow@8743
    65
nipkow@8743
    66
## HOL-Datatype
nipkow@8743
    67
nipkow@8743
    68
HOL-Datatype: HOL $(LOG)/HOL-Datatype.gz
nipkow@8743
    69
nipkow@8751
    70
$(LOG)/HOL-Datatype.gz: $(OUT)/HOL Datatype/ROOT.ML Datatype/ABexpr.thy \
nipkow@9666
    71
  Datatype/Nested.thy Datatype/unfoldnested.thy \
nipkow@9644
    72
  Datatype/Fundata.thy
nipkow@8743
    73
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Datatype
nipkow@8754
    74
	@rm -f tutorial.dvi
nipkow@8743
    75
nipkow@8743
    76
nipkow@8743
    77
## HOL-Trie
nipkow@8743
    78
nipkow@8743
    79
HOL-Trie: HOL $(LOG)/HOL-Trie.gz
nipkow@8743
    80
nipkow@8743
    81
$(LOG)/HOL-Trie.gz: $(OUT)/HOL Trie/Option2.thy Trie/Trie.thy
nipkow@8743
    82
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Trie
nipkow@8754
    83
	@rm -f tutorial.dvi
nipkow@8743
    84
nipkow@8743
    85
nipkow@8743
    86
## HOL-Recdef
nipkow@8743
    87
nipkow@8743
    88
HOL-Recdef: HOL $(LOG)/HOL-Recdef.gz
nipkow@8743
    89
nipkow@10186
    90
$(LOG)/HOL-Recdef.gz: $(OUT)/HOL Recdef/ROOT.ML Recdef/examples.thy Recdef/termination.thy \
nipkow@9644
    91
  Recdef/simplification.thy Recdef/Induction.thy \
nipkow@10187
    92
  Recdef/Nested0.thy Recdef/Nested1.thy Recdef/Nested2.thy
nipkow@8743
    93
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Recdef
nipkow@8754
    94
	@rm -f tutorial.dvi
nipkow@8743
    95
nipkow@8743
    96
nipkow@9933
    97
## HOL-Advanced
nipkow@9933
    98
nipkow@9933
    99
HOL-Advanced: HOL $(LOG)/HOL-Advanced.gz
nipkow@9933
   100
nipkow@10187
   101
$(LOG)/HOL-Advanced.gz: $(OUT)/HOL Advanced/simp.thy Advanced/ROOT.ML Advanced/WFrec.thy
nipkow@9933
   102
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Advanced
nipkow@9933
   103
	@rm -f tutorial.dvi
nipkow@9933
   104
nipkow@9958
   105
## HOL-CTL
nipkow@9958
   106
nipkow@9958
   107
HOL-CTL: HOL $(LOG)/HOL-CTL.gz
nipkow@9958
   108
nipkow@10122
   109
$(LOG)/HOL-CTL.gz: $(OUT)/HOL CTL/Base.thy CTL/PDL.thy CTL/CTL.thy CTL/ROOT.ML
nipkow@9958
   110
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL CTL
nipkow@9958
   111
	@rm -f tutorial.dvi
nipkow@9958
   112
nipkow@8743
   113
## HOL-Misc
nipkow@8743
   114
nipkow@8743
   115
HOL-Misc: HOL $(LOG)/HOL-Misc.gz
nipkow@8743
   116
nipkow@9722
   117
$(LOG)/HOL-Misc.gz: $(OUT)/HOL Misc/ROOT.ML Misc/Tree.thy Misc/Tree2.thy \
nipkow@9721
   118
  Misc/fakenat.thy Misc/natsum.thy Misc/pairs.thy Misc/types.thy \
nipkow@9721
   119
  Misc/prime_def.thy Misc/case_exprs.thy \
nipkow@9844
   120
  Misc/arith1.thy Misc/arith2.thy Misc/arith3.thy \
nipkow@9844
   121
  Misc/simp.thy Misc/Itrev.thy Misc/AdvancedInd.thy
nipkow@8743
   122
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Misc
nipkow@8754
   123
	@rm -f tutorial.dvi
nipkow@8743
   124
nipkow@8743
   125
nipkow@8743
   126
## clean
nipkow@8743
   127
nipkow@8743
   128
clean:
nipkow@9958
   129
	@rm -f tutorial.dvi $(LOG)/HOL-Ifexpr.gz $(LOG)/HOL-CodeGen.gz $(LOG)/HOL-Misc.gz $(LOG)/HOL-ToyList.gz $(LOG)/HOL-ToyList2.gz $(LOG)/HOL-Trie.gz $(LOG)/HOL-Datatype.gz $(LOG)/HOL-Recdef.gz $(LOG)/HOL-Advanced.gz $(LOG)/HOL-CTL.gz