Subversion Repositories mkgmap

Rev

Rev 2466 | Blame | Compare with Previous | Last modification | View Log | RSS feed


include ../resources/make.param

SOURCE_DEPS= tutorial.txt starting.txt first_map.txt $(XSL) 
TUTORIAL_MAIN=tutorial.txt

build: html

all: html pdf epub

html: tutorial.html
pdf: tutorial.pdf
epub: tutorial.epub

tutorial.html: $(SOURCE_DEPS)
        $(ASCIIDOC) $(HTML_ATTRS) -a icons -a iconsdir=$(ICONSDIR) -b html5 $(TUTORIAL_MAIN)

tutorial.pdf: $(SOURCE_DEPS)
        $(A2X) --xsl-file=$(XSL) --fop -a doctype=article $(PDF_OPTS) $(TUTORIAL_MAIN)

tutorial.epub: $(SOURCE_DEPS)
        mkdir -p build
        cp -ru $(RES)/common-images build
        $(A2X) --format epub --icons --icons-dir=build/common-images/icons $(TUTORIAL_MAIN)


install: pdf
        cp -u tutorial.pdf $(DEST)

clean:
        rm -f tutorial.{pdf,epub,html}
        rm -rf build