File: Makefile

package info (click to toggle)
mkgmap 0.0.0%2Bsvn4923-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,068 kB
  • sloc: java: 73,955; xml: 1,719; python: 713; sh: 240; makefile: 147; perl: 31
file content (38 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

include ../resources/make.param

TUTORIAL_MAIN=main.txt
SOURCE_DEPS= \
		$(TUTORIAL_MAIN) \
		starting.txt \
		first_map.txt second_map.txt publish.txt \
		splitter.txt custom.txt \
		$(XSL) 

build: html

all: html pdf epub

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

tutorial.html: $(SOURCE_DEPS)
	$(ASCIIDOC) $(HTML_ATTRS) -o tutorial.html -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)
	mv main.pdf tutorial.pdf

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