File: Makefile

package info (click to toggle)
mkgmap 0.0.0%2Bsvn4262-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,544 kB
  • sloc: java: 71,295; xml: 1,659; python: 713; sh: 254; makefile: 150; perl: 31
file content (37 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (7)
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
include ../resources/make.param


SOURCES= about.txt creating.txt design.txt files.txt rules.txt internal-tags.txt \
		 rules-filters.txt style-manual.txt $(XSL) 

STYLE_MAIN=style-manual.txt
TARGET_PDF=style-manual.pdf

build: html

all: html pdf epub

html: style-manual.html
pdf: style-manual.pdf
epub: style-manual.epub

style-manual.html: $(SOURCES)
	$(ASCIIDOC) $(HTML_ATTRS) -a icons -a iconsdir=$(ICONSDIR) -b html5 $(STYLE_MAIN)

$(TARGET_PDF): $(SOURCES)
	$(A2X) -L --xsl-file=$(XSL) --fop $(PDF_OPTS) $(STYLE_MAIN)

style-manual.epub: $(SOURCES)
	mkdir -p build
	cp -ru $(RES)/common-images build
	$(A2X) --format epub --icons --icons-dir=build/common-images/icons $(STYLE_MAIN)


install: $(DEST)/$(TARGET_PDF)
	cp -u $(TARGET_PDF) $(DEST)

$(DEST)/$(TARGET_PDF): pdf

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