doc-src/TutorialI/IsaMakefile
author wenzelm
Mon May 08 10:53:13 2000 +0200 (2000-05-08)
changeset 8825 0c9cf33d499b
parent 8754 42ce93ada11e
child 8847 d6c92979fa51
permissions -rw-r--r--
improved handling of Isabelle styles (less garbage);
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
nipkow@8743
     8
nipkow@8743
     9
nipkow@8743
    10
## global settings
nipkow@8743
    11
nipkow@8743
    12
SRC = $(ISABELLE_HOME)/src
nipkow@8743
    13
OUT = $(ISABELLE_OUTPUT)
nipkow@8743
    14
LOG = $(OUT)/log
nipkow@8743
    15
nipkow@8743
    16
nipkow@8743
    17
## HOL
nipkow@8743
    18
nipkow@8743
    19
HOL:
nipkow@8743
    20
	@cd $(SRC)/HOL; $(ISATOOL) make HOL
nipkow@8743
    21
wenzelm@8825
    22
styles:
wenzelm@8825
    23
	@$(ISATOOL) latex -o sty
wenzelm@8825
    24
	@rm -f */document/isabelle.sty
wenzelm@8825
    25
	@rm -f */document/isabellesym.sty
wenzelm@8825
    26
	@rm -f */document/pdfsetup.sty
nipkow@8743
    27
nipkow@8743
    28
nipkow@8743
    29
## HOL-Ifexpr
nipkow@8743
    30
nipkow@8743
    31
HOL-Ifexpr: HOL $(LOG)/HOL-Ifexpr.gz
nipkow@8743
    32
nipkow@8743
    33
$(LOG)/HOL-Ifexpr.gz: $(OUT)/HOL Ifexpr/Ifexpr.thy Ifexpr/ROOT.ML
nipkow@8743
    34
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Ifexpr
nipkow@8754
    35
	@rm -f tutorial.dvi
nipkow@8743
    36
nipkow@8743
    37
## HOL-ToyList
nipkow@8743
    38
nipkow@8743
    39
HOL-ToyList: HOL $(LOG)/HOL-ToyList.gz $(LOG)/HOL-ToyList2.gz
nipkow@8743
    40
nipkow@8743
    41
ToyList2/ToyList.thy: ToyList2/ToyList1 ToyList2/ToyList2
nipkow@8743
    42
	cat ToyList2/ToyList1 ToyList2/ToyList2 > ToyList2/ToyList.thy
nipkow@8743
    43
nipkow@8743
    44
$(LOG)/HOL-ToyList2.gz: $(OUT)/HOL ToyList2/ToyList.thy ToyList2/ROOT.ML
nipkow@8743
    45
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList2
nipkow@8754
    46
	@rm -f tutorial.dvi
nipkow@8743
    47
nipkow@8743
    48
$(LOG)/HOL-ToyList.gz: $(OUT)/HOL ToyList/ToyList.thy ToyList/ROOT.ML
nipkow@8743
    49
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL ToyList
nipkow@8754
    50
	@rm -f tutorial.dvi
nipkow@8743
    51
nipkow@8743
    52
## HOL-CodeGen
nipkow@8743
    53
nipkow@8743
    54
HOL-CodeGen: HOL $(LOG)/HOL-CodeGen.gz
nipkow@8743
    55
nipkow@8743
    56
$(LOG)/HOL-CodeGen.gz: $(OUT)/HOL CodeGen/CodeGen.thy
nipkow@8743
    57
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL CodeGen
nipkow@8754
    58
	@rm -f tutorial.dvi
nipkow@8743
    59
nipkow@8743
    60
nipkow@8743
    61
## HOL-Datatype
nipkow@8743
    62
nipkow@8743
    63
HOL-Datatype: HOL $(LOG)/HOL-Datatype.gz
nipkow@8743
    64
nipkow@8751
    65
$(LOG)/HOL-Datatype.gz: $(OUT)/HOL Datatype/ROOT.ML Datatype/ABexpr.thy \
nipkow@8751
    66
  Datatype/Nested.thy Datatype/unfoldnested.thy Datatype/Fundata.thy
nipkow@8743
    67
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Datatype
nipkow@8754
    68
	@rm -f tutorial.dvi
nipkow@8743
    69
nipkow@8743
    70
nipkow@8743
    71
## HOL-Trie
nipkow@8743
    72
nipkow@8743
    73
HOL-Trie: HOL $(LOG)/HOL-Trie.gz
nipkow@8743
    74
nipkow@8743
    75
$(LOG)/HOL-Trie.gz: $(OUT)/HOL Trie/Option2.thy Trie/Trie.thy
nipkow@8743
    76
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Trie
nipkow@8754
    77
	@rm -f tutorial.dvi
nipkow@8743
    78
nipkow@8743
    79
nipkow@8743
    80
## HOL-Recdef
nipkow@8743
    81
nipkow@8743
    82
HOL-Recdef: HOL $(LOG)/HOL-Recdef.gz
nipkow@8743
    83
nipkow@8743
    84
$(LOG)/HOL-Recdef.gz: $(OUT)/HOL Recdef/examples.thy Recdef/termination.thy \
nipkow@8743
    85
  Recdef/simplification.thy Recdef/Induction.thy
nipkow@8743
    86
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Recdef
nipkow@8754
    87
	@rm -f tutorial.dvi
nipkow@8743
    88
nipkow@8743
    89
nipkow@8743
    90
## HOL-Misc
nipkow@8743
    91
nipkow@8743
    92
HOL-Misc: HOL $(LOG)/HOL-Misc.gz
nipkow@8743
    93
nipkow@8743
    94
$(LOG)/HOL-Misc.gz: $(OUT)/HOL Misc/ROOT.ML Misc/Tree.thy Misc/cases.thy \
nipkow@8743
    95
  Misc/fakenat.thy Misc/natsum.thy Misc/pairs.thy Misc/types.thy Misc/prime_def.thy \
nipkow@8743
    96
  Misc/arith1.thy Misc/arith2.thy Misc/arith3.thy Misc/arith4.thy \
nipkow@8743
    97
  Misc/def_rewr.thy Misc/let_rewr.thy Misc/cond_rewr.thy Misc/case_splits.thy \
nipkow@8743
    98
  Misc/trace_simp.thy Misc/Itrev.thy Misc/asm_simp.thy
nipkow@8743
    99
	@$(ISATOOL) usedir -i true -d dvi -D document $(OUT)/HOL Misc
nipkow@8754
   100
	@rm -f tutorial.dvi
nipkow@8743
   101
nipkow@8743
   102
nipkow@8743
   103
## clean
nipkow@8743
   104
nipkow@8743
   105
clean:
nipkow@8754
   106
	@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