doc-src/LaTeXsugar/Makefile
author wenzelm
Wed Jul 25 12:38:54 2012 +0200 (2012-07-25)
changeset 48497 ba61aceaa18a
parent 42637 381fdcab0f36
permissions -rw-r--r--
some updates on "Building a repository version of Isabelle";
kleing@15728
     1
kleing@15728
     2
## targets
kleing@15728
     3
kleing@15728
     4
default: dvi
kleing@15728
     5
kleing@15728
     6
## paths
kleing@15728
     7
kleing@15894
     8
SRCPATH = Sugar/document
kleing@15728
     9
kleing@15728
    10
## dependencies
kleing@15728
    11
kleing@15728
    12
include ../Makefile.in
kleing@15728
    13
kleing@15728
    14
NAME = sugar
kleing@15728
    15
kleing@15894
    16
FILES = Sugar/document/root.tex Sugar/document/root.bib \
nipkow@16395
    17
        Sugar/document/mathpartir.sty Sugar/document/LaTeXsugar.tex \
wenzelm@26911
    18
        Sugar/document/OptionalSugar.tex Sugar/document/Sugar.tex \
wenzelm@42511
    19
        ../../lib/texinputs/isabelle.sty ../../lib/texinputs/isabellesym.sty ../pdfsetup.sty
kleing@15728
    20
kleing@15894
    21
GARBAGE = Sugar/document/*.aux Sugar/document/*.log Sugar/document/*.toc \
kleing@15894
    22
          Sugar/document/*.idx Sugar/document/*.bbl Sugar/document/*.blg \
kleing@15894
    23
          Sugar/document/*.out
kleing@15730
    24
kleing@15728
    25
dvi: $(NAME).dvi
kleing@15728
    26
kleing@15728
    27
$(NAME).dvi: $(FILES)
kleing@15894
    28
	cd Sugar/document; \
kleing@15728
    29
	$(LATEX) root; \
kleing@15728
    30
	$(BIBTEX) root; \
kleing@15728
    31
	$(LATEX) root; \
kleing@15728
    32
	$(LATEX) root
kleing@15894
    33
	mv $(SRCPATH)/root.dvi $(NAME).dvi
kleing@15728
    34
kleing@15728
    35
pdf: $(NAME).pdf
kleing@15728
    36
kleing@15728
    37
$(NAME).pdf: $(FILES)
kleing@15894
    38
	cd Sugar/document; \
kleing@15728
    39
	$(PDFLATEX) root; \
kleing@15728
    40
	$(BIBTEX) root; \
kleing@15728
    41
	$(PDFLATEX) root; \
kleing@15728
    42
	$(PDFLATEX) root
kleing@15894
    43
	mv $(SRCPATH)/root.pdf $(NAME).pdf
kleing@15728
    44