doc-src/TutorialI/IsaMakefile
author nipkow
Mon Aug 21 17:54:43 2000 +0200 (2000-08-21)
changeset 9666 3572fc1dbe6b
parent 9644 6b0b6b471855
child 9689 751fde5307e4
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
wenzelm@8825
     7
default: HOL-ToyList HOL-Ifexpr HOL-CodeGen HOL-Trie HOL-Datatype HOL-Recdef 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
nipkow@8743
    31
nipkow@8743
    32
nipkow@8743
    33
## HOL-Ifexpr
nipkow@8743
    34
nipkow@8743
    35
HOL-Ifexpr: HOL $(LOG)/HOL-Ifexpr.gz
nipkow@8743
    36
nipkow@8743
    37
$(LOG)/HOL-Ifexpr.gz: $(OUT)/HOL Ifexpr/Ifexpr.thy Ifexpr/ROOT.ML
nipkow@8743
    38
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Ifexpr
nipkow@8754
    39
	@rm -f tutorial.dvi
nipkow@8743
    40
nipkow@8743
    41
## HOL-ToyList
nipkow@8743
    42
nipkow@8743
    43
HOL-ToyList: HOL $(LOG)/HOL-ToyList.gz $(LOG)/HOL-ToyList2.gz
nipkow@8743
    44
nipkow@8743
    45
ToyList2/ToyList.thy: ToyList2/ToyList1 ToyList2/ToyList2
nipkow@8743
    46
	cat ToyList2/ToyList1 ToyList2/ToyList2 > ToyList2/ToyList.thy
nipkow@8743
    47
nipkow@8743
    48
$(LOG)/HOL-ToyList2.gz: $(OUT)/HOL ToyList2/ToyList.thy ToyList2/ROOT.ML
nipkow@8743
    49
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList2
nipkow@8754
    50
	@rm -f tutorial.dvi
nipkow@8743
    51
nipkow@8743
    52
$(LOG)/HOL-ToyList.gz: $(OUT)/HOL ToyList/ToyList.thy ToyList/ROOT.ML
nipkow@8743
    53
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList
nipkow@8754
    54
	@rm -f tutorial.dvi
nipkow@8743
    55
nipkow@8743
    56
## HOL-CodeGen
nipkow@8743
    57
nipkow@8743
    58
HOL-CodeGen: HOL $(LOG)/HOL-CodeGen.gz
nipkow@8743
    59
nipkow@8743
    60
$(LOG)/HOL-CodeGen.gz: $(OUT)/HOL CodeGen/CodeGen.thy
nipkow@8743
    61
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL CodeGen
nipkow@8754
    62
	@rm -f tutorial.dvi
nipkow@8743
    63
nipkow@8743
    64
nipkow@8743
    65
## HOL-Datatype
nipkow@8743
    66
nipkow@8743
    67
HOL-Datatype: HOL $(LOG)/HOL-Datatype.gz
nipkow@8743
    68
nipkow@8751
    69
$(LOG)/HOL-Datatype.gz: $(OUT)/HOL Datatype/ROOT.ML Datatype/ABexpr.thy \
nipkow@9666
    70
  Datatype/Nested.thy Datatype/unfoldnested.thy \
nipkow@9644
    71
  Datatype/Fundata.thy
nipkow@8743
    72
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Datatype
nipkow@8754
    73
	@rm -f tutorial.dvi
nipkow@8743
    74
nipkow@8743
    75
nipkow@8743
    76
## HOL-Trie
nipkow@8743
    77
nipkow@8743
    78
HOL-Trie: HOL $(LOG)/HOL-Trie.gz
nipkow@8743
    79
nipkow@8743
    80
$(LOG)/HOL-Trie.gz: $(OUT)/HOL Trie/Option2.thy Trie/Trie.thy
nipkow@8743
    81
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Trie
nipkow@8754
    82
	@rm -f tutorial.dvi
nipkow@8743
    83
nipkow@8743
    84
nipkow@8743
    85
## HOL-Recdef
nipkow@8743
    86
nipkow@8743
    87
HOL-Recdef: HOL $(LOG)/HOL-Recdef.gz
nipkow@8743
    88
nipkow@8743
    89
$(LOG)/HOL-Recdef.gz: $(OUT)/HOL Recdef/examples.thy Recdef/termination.thy \
nipkow@9644
    90
  Recdef/simplification.thy Recdef/Induction.thy \
nipkow@9644
    91
  Recdef/Nested0.thy Recdef/Nested1.thy 
nipkow@8743
    92
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Recdef
nipkow@8754
    93
	@rm -f tutorial.dvi
nipkow@8743
    94
nipkow@8743
    95
nipkow@8743
    96
## HOL-Misc
nipkow@8743
    97
nipkow@8743
    98
HOL-Misc: HOL $(LOG)/HOL-Misc.gz
nipkow@8743
    99
nipkow@9493
   100
$(LOG)/HOL-Misc.gz: $(OUT)/HOL Misc/ROOT.ML Misc/Tree.thy Misc/Tree2.thy Misc/cases.thy \
nipkow@8743
   101
  Misc/fakenat.thy Misc/natsum.thy Misc/pairs.thy Misc/types.thy Misc/prime_def.thy \
nipkow@8743
   102
  Misc/arith1.thy Misc/arith2.thy Misc/arith3.thy Misc/arith4.thy \
nipkow@8743
   103
  Misc/def_rewr.thy Misc/let_rewr.thy Misc/cond_rewr.thy Misc/case_splits.thy \
nipkow@9644
   104
  Misc/trace_simp.thy Misc/Itrev.thy Misc/AdvancedInd.thy Misc/asm_simp.thy
nipkow@8743
   105
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Misc
nipkow@8754
   106
	@rm -f tutorial.dvi
nipkow@8743
   107
nipkow@8743
   108
nipkow@8743
   109
## clean
nipkow@8743
   110
nipkow@8743
   111
clean:
nipkow@8754
   112
	@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