doc-src/TutorialI/IsaMakefile
author nipkow
Wed Dec 13 09:39:53 2000 +0100 (2000-12-13)
changeset 10654 458068404143
parent 10598 f92037156f4d
child 10655 ddd33e0f4935
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@10328
     7
default: HOL-ToyList HOL-Ifexpr HOL-CodeGen HOL-Trie HOL-Datatype HOL-Recdef HOL-Advanced HOL-Rules HOL-Sets HOL-CTL HOL-Inductive  HOL-Types 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:
nipkow@10654
    26
	@rm -f isabelle.sty
nipkow@10654
    27
	@rm -f isabellesym.sty
nipkow@10654
    28
	@rm -f pdfsetup.sty
wenzelm@8847
    29
	@$(ISATOOL) latex -o sty >/dev/null
wenzelm@8847
    30
	@rm -f pdfsetup.sty
wenzelm@8825
    31
	@rm -f */document/isabelle.sty
wenzelm@8825
    32
	@rm -f */document/isabellesym.sty
wenzelm@8825
    33
	@rm -f */document/pdfsetup.sty
wenzelm@10002
    34
	@rm -f */document/session.tex
nipkow@8743
    35
nipkow@8743
    36
nipkow@8743
    37
## HOL-Ifexpr
nipkow@8743
    38
nipkow@8743
    39
HOL-Ifexpr: HOL $(LOG)/HOL-Ifexpr.gz
nipkow@8743
    40
nipkow@8743
    41
$(LOG)/HOL-Ifexpr.gz: $(OUT)/HOL Ifexpr/Ifexpr.thy Ifexpr/ROOT.ML
nipkow@8743
    42
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Ifexpr
nipkow@8754
    43
	@rm -f tutorial.dvi
nipkow@8743
    44
nipkow@8743
    45
## HOL-ToyList
nipkow@8743
    46
nipkow@8743
    47
HOL-ToyList: HOL $(LOG)/HOL-ToyList.gz $(LOG)/HOL-ToyList2.gz
nipkow@8743
    48
nipkow@8743
    49
ToyList2/ToyList.thy: ToyList2/ToyList1 ToyList2/ToyList2
nipkow@8743
    50
	cat ToyList2/ToyList1 ToyList2/ToyList2 > ToyList2/ToyList.thy
nipkow@8743
    51
nipkow@8743
    52
$(LOG)/HOL-ToyList2.gz: $(OUT)/HOL ToyList2/ToyList.thy ToyList2/ROOT.ML
nipkow@8743
    53
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList2
nipkow@8754
    54
	@rm -f tutorial.dvi
nipkow@8743
    55
nipkow@8743
    56
$(LOG)/HOL-ToyList.gz: $(OUT)/HOL ToyList/ToyList.thy ToyList/ROOT.ML
nipkow@8743
    57
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList
nipkow@8754
    58
	@rm -f tutorial.dvi
nipkow@8743
    59
nipkow@8743
    60
## HOL-CodeGen
nipkow@8743
    61
nipkow@8743
    62
HOL-CodeGen: HOL $(LOG)/HOL-CodeGen.gz
nipkow@8743
    63
nipkow@8743
    64
$(LOG)/HOL-CodeGen.gz: $(OUT)/HOL CodeGen/CodeGen.thy
nipkow@8743
    65
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL CodeGen
nipkow@8754
    66
	@rm -f tutorial.dvi
nipkow@8743
    67
nipkow@8743
    68
nipkow@8743
    69
## HOL-Datatype
nipkow@8743
    70
nipkow@8743
    71
HOL-Datatype: HOL $(LOG)/HOL-Datatype.gz
nipkow@8743
    72
nipkow@8751
    73
$(LOG)/HOL-Datatype.gz: $(OUT)/HOL Datatype/ROOT.ML Datatype/ABexpr.thy \
nipkow@9666
    74
  Datatype/Nested.thy Datatype/unfoldnested.thy \
nipkow@9644
    75
  Datatype/Fundata.thy
nipkow@8743
    76
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Datatype
nipkow@8754
    77
	@rm -f tutorial.dvi
nipkow@8743
    78
nipkow@8743
    79
nipkow@8743
    80
## HOL-Trie
nipkow@8743
    81
nipkow@8743
    82
HOL-Trie: HOL $(LOG)/HOL-Trie.gz
nipkow@8743
    83
nipkow@10543
    84
$(LOG)/HOL-Trie.gz: $(OUT)/HOL Trie/ROOT.ML Trie/Trie.thy
nipkow@8743
    85
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Trie
nipkow@8754
    86
	@rm -f tutorial.dvi
nipkow@8743
    87
nipkow@8743
    88
nipkow@8743
    89
## HOL-Recdef
nipkow@8743
    90
nipkow@8743
    91
HOL-Recdef: HOL $(LOG)/HOL-Recdef.gz
nipkow@8743
    92
nipkow@10186
    93
$(LOG)/HOL-Recdef.gz: $(OUT)/HOL Recdef/ROOT.ML Recdef/examples.thy Recdef/termination.thy \
nipkow@9644
    94
  Recdef/simplification.thy Recdef/Induction.thy \
nipkow@10187
    95
  Recdef/Nested0.thy Recdef/Nested1.thy Recdef/Nested2.thy
nipkow@8743
    96
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Recdef
nipkow@8754
    97
	@rm -f tutorial.dvi
nipkow@8743
    98
nipkow@8743
    99
nipkow@9933
   100
## HOL-Advanced
nipkow@9933
   101
nipkow@9933
   102
HOL-Advanced: HOL $(LOG)/HOL-Advanced.gz
nipkow@9933
   103
nipkow@10654
   104
$(LOG)/HOL-Advanced.gz: $(OUT)/HOL Advanced/simp.thy Advanced/ROOT.ML Advanced/WFrec.thy \
nipkow@10654
   105
	Advanced/Partial.thy
nipkow@9933
   106
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Advanced
nipkow@9933
   107
	@rm -f tutorial.dvi
nipkow@9933
   108
paulson@10296
   109
## HOL-Rules
paulson@10296
   110
paulson@10296
   111
HOL-Rules: HOL $(LOG)/HOL-Rules.gz
paulson@10296
   112
paulson@10296
   113
$(LOG)/HOL-Rules.gz: $(OUT)/HOL Rules/Basic.thy \
paulson@10296
   114
	Rules/Blast.thy Rules/Force.thy Rules/Primes.thy  \
paulson@10296
   115
	Rules/ROOT.ML 
paulson@10296
   116
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Rules
paulson@10296
   117
	@rm -f tutorial.dvi
paulson@10296
   118
paulson@10296
   119
## HOL-Sets
paulson@10296
   120
paulson@10296
   121
HOL-Sets: HOL $(LOG)/HOL-Sets.gz
paulson@10296
   122
paulson@10296
   123
$(LOG)/HOL-Sets.gz: $(OUT)/HOL Sets/Examples.thy Sets/Functions.thy \
paulson@10296
   124
	Sets/Recur.thy Sets/Relations.thy Sets/ROOT.ML
paulson@10296
   125
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Sets
paulson@10296
   126
	@rm -f tutorial.dvi
paulson@10296
   127
nipkow@9958
   128
## HOL-CTL
nipkow@9958
   129
nipkow@9958
   130
HOL-CTL: HOL $(LOG)/HOL-CTL.gz
nipkow@9958
   131
nipkow@10212
   132
$(LOG)/HOL-CTL.gz: $(OUT)/HOL CTL/Base.thy CTL/PDL.thy CTL/CTL.thy CTL/CTLind.thy CTL/ROOT.ML
nipkow@9958
   133
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL CTL
nipkow@9958
   134
	@rm -f tutorial.dvi
nipkow@9958
   135
nipkow@10217
   136
## HOL-Inductive
nipkow@10217
   137
nipkow@10217
   138
HOL-Inductive: HOL $(LOG)/HOL-Inductive.gz
nipkow@10217
   139
nipkow@10225
   140
$(LOG)/HOL-Inductive.gz: $(OUT)/HOL Inductive/ROOT.ML \
paulson@10368
   141
  Inductive/Even.thy Inductive/Star.thy Inductive/AB.thy Inductive/Advanced.thy
nipkow@10217
   142
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Inductive
nipkow@10217
   143
	@rm -f tutorial.dvi
nipkow@10217
   144
nipkow@10328
   145
## HOL-Types
nipkow@10328
   146
nipkow@10328
   147
HOL-Types: HOL $(LOG)/HOL-Types.gz
nipkow@10328
   148
paulson@10598
   149
$(LOG)/HOL-Types.gz: $(OUT)/HOL Types/ROOT.ML \
paulson@10598
   150
  Types/Numbers.thy Types/Pairs.thy Types/Typedef.thy \
nipkow@10328
   151
  Types/Overloading0.thy Types/Overloading1.thy Types/Overloading2.thy \
nipkow@10328
   152
  Types/Overloading.thy Types/Axioms.thy
nipkow@10328
   153
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Types
nipkow@10328
   154
	@rm -f tutorial.dvi
nipkow@10328
   155
nipkow@8743
   156
## HOL-Misc
nipkow@8743
   157
nipkow@8743
   158
HOL-Misc: HOL $(LOG)/HOL-Misc.gz
nipkow@8743
   159
nipkow@9722
   160
$(LOG)/HOL-Misc.gz: $(OUT)/HOL Misc/ROOT.ML Misc/Tree.thy Misc/Tree2.thy \
nipkow@10543
   161
  Misc/fakenat.thy Misc/natsum.thy Misc/pairs.thy Misc/Option2.thy \
nipkow@10543
   162
  Misc/types.thy Misc/prime_def.thy Misc/case_exprs.thy \
nipkow@9844
   163
  Misc/simp.thy Misc/Itrev.thy Misc/AdvancedInd.thy
nipkow@8743
   164
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Misc
nipkow@8754
   165
	@rm -f tutorial.dvi
nipkow@8743
   166
nipkow@8743
   167
nipkow@8743
   168
## clean
nipkow@8743
   169
nipkow@8743
   170
clean:
nipkow@10328
   171
	@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-Rules.gz $(LOG)/HOL-Sets.gz $(LOG)/HOL-CTL.gz $(LOG)/HOL-Inductive.gz $(LOG)/HOL-Types.gz