doc-src/TutorialI/IsaMakefile
author paulson
Tue Dec 05 18:57:40 2000 +0100 (2000-12-05)
changeset 10598 f92037156f4d
parent 10543 8e4307d1207a
child 10654 458068404143
permissions -rw-r--r--
new theory Numbers.thy
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:
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@10543
    81
$(LOG)/HOL-Trie.gz: $(OUT)/HOL Trie/ROOT.ML 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
paulson@10296
   105
## HOL-Rules
paulson@10296
   106
paulson@10296
   107
HOL-Rules: HOL $(LOG)/HOL-Rules.gz
paulson@10296
   108
paulson@10296
   109
$(LOG)/HOL-Rules.gz: $(OUT)/HOL Rules/Basic.thy \
paulson@10296
   110
	Rules/Blast.thy Rules/Force.thy Rules/Primes.thy  \
paulson@10296
   111
	Rules/ROOT.ML 
paulson@10296
   112
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Rules
paulson@10296
   113
	@rm -f tutorial.dvi
paulson@10296
   114
paulson@10296
   115
## HOL-Sets
paulson@10296
   116
paulson@10296
   117
HOL-Sets: HOL $(LOG)/HOL-Sets.gz
paulson@10296
   118
paulson@10296
   119
$(LOG)/HOL-Sets.gz: $(OUT)/HOL Sets/Examples.thy Sets/Functions.thy \
paulson@10296
   120
	Sets/Recur.thy Sets/Relations.thy Sets/ROOT.ML
paulson@10296
   121
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Sets
paulson@10296
   122
	@rm -f tutorial.dvi
paulson@10296
   123
nipkow@9958
   124
## HOL-CTL
nipkow@9958
   125
nipkow@9958
   126
HOL-CTL: HOL $(LOG)/HOL-CTL.gz
nipkow@9958
   127
nipkow@10212
   128
$(LOG)/HOL-CTL.gz: $(OUT)/HOL CTL/Base.thy CTL/PDL.thy CTL/CTL.thy CTL/CTLind.thy CTL/ROOT.ML
nipkow@9958
   129
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL CTL
nipkow@9958
   130
	@rm -f tutorial.dvi
nipkow@9958
   131
nipkow@10217
   132
## HOL-Inductive
nipkow@10217
   133
nipkow@10217
   134
HOL-Inductive: HOL $(LOG)/HOL-Inductive.gz
nipkow@10217
   135
nipkow@10225
   136
$(LOG)/HOL-Inductive.gz: $(OUT)/HOL Inductive/ROOT.ML \
paulson@10368
   137
  Inductive/Even.thy Inductive/Star.thy Inductive/AB.thy Inductive/Advanced.thy
nipkow@10217
   138
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Inductive
nipkow@10217
   139
	@rm -f tutorial.dvi
nipkow@10217
   140
nipkow@10328
   141
## HOL-Types
nipkow@10328
   142
nipkow@10328
   143
HOL-Types: HOL $(LOG)/HOL-Types.gz
nipkow@10328
   144
paulson@10598
   145
$(LOG)/HOL-Types.gz: $(OUT)/HOL Types/ROOT.ML \
paulson@10598
   146
  Types/Numbers.thy Types/Pairs.thy Types/Typedef.thy \
nipkow@10328
   147
  Types/Overloading0.thy Types/Overloading1.thy Types/Overloading2.thy \
nipkow@10328
   148
  Types/Overloading.thy Types/Axioms.thy
nipkow@10328
   149
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Types
nipkow@10328
   150
	@rm -f tutorial.dvi
nipkow@10328
   151
nipkow@8743
   152
## HOL-Misc
nipkow@8743
   153
nipkow@8743
   154
HOL-Misc: HOL $(LOG)/HOL-Misc.gz
nipkow@8743
   155
nipkow@9722
   156
$(LOG)/HOL-Misc.gz: $(OUT)/HOL Misc/ROOT.ML Misc/Tree.thy Misc/Tree2.thy \
nipkow@10543
   157
  Misc/fakenat.thy Misc/natsum.thy Misc/pairs.thy Misc/Option2.thy \
nipkow@10543
   158
  Misc/types.thy Misc/prime_def.thy Misc/case_exprs.thy \
nipkow@9844
   159
  Misc/simp.thy Misc/Itrev.thy Misc/AdvancedInd.thy
nipkow@8743
   160
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Misc
nipkow@8754
   161
	@rm -f tutorial.dvi
nipkow@8743
   162
nipkow@8743
   163
nipkow@8743
   164
## clean
nipkow@8743
   165
nipkow@8743
   166
clean:
nipkow@10328
   167
	@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