| 1 | include ../resources/make.param |
| 2 | |
| 3 | |
| 4 | SOURCES= about.txt creating.txt design.txt files.txt rules.txt internal-tags.txt \ |
| 5 | rules-filters.txt style-manual.txt $(XSL) |
| 6 | |
| 7 | STYLE_MAIN=style-manual.txt |
| 8 | TARGET_PDF=style-manual.pdf |
| 9 | |
| 10 | build: html |
| 11 | |
| 12 | all: html pdf epub |
| 13 | |
| 14 | html: style-manual.html |
| 15 | pdf: style-manual.pdf |
| 16 | epub: style-manual.epub |
| 17 | |
| 18 | style-manual.html: $(SOURCES) |
| 19 | $(ASCIIDOC) $(HTML_ATTRS) -a icons -a iconsdir=$(ICONSDIR) -b html5 $(STYLE_MAIN) |
| 20 | |
| 21 | $(TARGET_PDF): $(SOURCES) |
| 22 | $(A2X) -L --xsl-file=$(XSL) --fop $(PDF_OPTS) $(STYLE_MAIN) |
| 23 | |
| 24 | style-manual.epub: $(SOURCES) |
| 25 | mkdir -p build |
| 26 | cp -ru $(RES)/common-images build |
| 27 | $(A2X) --format epub --icons --icons-dir=build/common-images/icons $(STYLE_MAIN) |
| 28 | |
| 29 | |
| 30 | install: $(DEST)/$(TARGET_PDF) |
| 31 | cp -u $(TARGET_PDF) $(DEST) |
| 32 | |
| 33 | $(DEST)/$(TARGET_PDF): pdf |
| 34 | |
| 35 | clean: |
| 36 | rm -f style-manual.{pdf,epub,html} |
| 37 | rm -rf build |