Rev 105 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 105 | Rev 106 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | 50 | ||
51 | all: html htmlchunked pdf |
51 | all: html htmlchunked pdf |
52 | 52 | ||
53 | build: clean all |
53 | build: clean all |
54 | 54 | ||
55 | html: |
55 | html: imgconvert |
56 | mkdir -p $(BUILD_HTML_DIR) |
56 | mkdir -p $(BUILD_HTML_DIR) |
57 | mkdir -p $(BUILD_HTML_DIR)images |
57 | mkdir -p $(BUILD_HTML_DIR)images |
58 | cp src/images/* $(BUILD_HTML_DIR)images |
58 | cp src/images/* $(BUILD_HTML_DIR)images |
59 | xsltproc \ |
59 | xsltproc \ |
60 | --stringparam section.autolabel 1 \ |
60 | --stringparam section.autolabel 1 \ |
61 | --stringparam section.label.includes.component.label 1 \ |
61 | --stringparam section.label.includes.component.label 1 \ |
62 | --stringparam section.autolabel.max.depth 2 \ |
62 | --stringparam section.autolabel.max.depth 2 \ |
63 | --stringparam preferred.mediaobject.role html \ |
63 | --stringparam preferred.mediaobject.role html \ |
64 | --output $(BUILD_HTML_DIR)index.html $(DOCBOOK_DIR)html/docbook.xsl src/index.xml |
64 | --output $(BUILD_HTML_DIR)index.html $(DOCBOOK_DIR)html/docbook.xsl src/index.xml |
65 | htmlchunked: |
65 | htmlchunked: imgconvert |
66 | mkdir -p $(BUILD_HTML_CHUNKED_DIR) |
66 | mkdir -p $(BUILD_HTML_CHUNKED_DIR) |
67 | mkdir -p $(BUILD_HTML_CHUNKED_DIR)images |
67 | mkdir -p $(BUILD_HTML_CHUNKED_DIR)images |
68 | cp src/images/* $(BUILD_HTML_CHUNKED_DIR)images |
68 | cp src/images/* $(BUILD_HTML_CHUNKED_DIR)images |
69 | xsltproc \ |
69 | xsltproc \ |
70 | --stringparam section.autolabel 1 \ |
70 | --stringparam section.autolabel 1 \ |
71 | --stringparam section.label.includes.component.label 1 \ |
71 | --stringparam section.label.includes.component.label 1 \ |
72 | --stringparam chunk.section.depth 0 \ |
72 | --stringparam chunk.section.depth 0 \ |
73 | --stringparam section.autolabel.max.depth 2 \ |
73 | --stringparam section.autolabel.max.depth 2 \ |
74 | --stringparam preferred.mediaobject.role html \ |
74 | --stringparam preferred.mediaobject.role html \ |
75 | --output $(BUILD_HTML_CHUNKED_DIR)index.html $(DOCBOOK_DIR)html/chunk.xsl src/index.xml |
75 | --output $(BUILD_HTML_CHUNKED_DIR)index.html $(DOCBOOK_DIR)html/chunk.xsl src/index.xml |
76 | pdf: imgconvert dblatex-pdf |
76 | pdf: dblatex-pdf |
77 | imgconvert: |
- | |
78 | cd src/images; ./convert |
- | |
79 | dblatex-pdf: |
77 | dblatex-pdf: imgconvert |
80 | mkdir -p $(BUILD_PDF_DIR) |
78 | mkdir -p $(BUILD_PDF_DIR) |
81 | $(DBLATEX) \ |
79 | $(DBLATEX) \ |
82 | -t pdf -T db2latex -f pdf \ |
80 | -t pdf -T db2latex -f pdf \ |
83 | -p tools/extra/dblatex-extra.xsl \ |
81 | -p tools/extra/dblatex-extra.xsl \ |
84 | -o $(BUILD_PDF_DIR)HelenOS-doc-design.pdf \ |
82 | -o $(BUILD_PDF_DIR)HelenOS-doc-design.pdf \ |
85 | src/index.xml |
83 | src/index.xml |
86 | fo-pdf: |
84 | fo-pdf: imgconvert |
87 | mkdir -p $(BUILD_PDF_DIR) |
85 | mkdir -p $(BUILD_PDF_DIR) |
88 | mkdir -p $(BUILD_PDF_DIR)images |
86 | mkdir -p $(BUILD_PDF_DIR)images |
89 | cp src/images/* $(BUILD_PDF_DIR)images |
87 | cp src/images/* $(BUILD_PDF_DIR)images |
90 | xsltproc \ |
88 | xsltproc \ |
91 | --stringparam paper.type A4 \ |
89 | --stringparam paper.type A4 \ |
Line 97... | Line 95... | ||
97 | --stringparam body.font.master 12 \ |
95 | --stringparam body.font.master 12 \ |
98 | --stringparam preferred.mediaobject.role fop \ |
96 | --stringparam preferred.mediaobject.role fop \ |
99 | --output $(BUILD_PDF_DIR)index.fo $(DOCBOOK_DIR)fo/docbook.xsl src/index.xml |
97 | --output $(BUILD_PDF_DIR)index.fo $(DOCBOOK_DIR)fo/docbook.xsl src/index.xml |
100 | 98 | ||
101 | $(FOP) -q -fo $(BUILD_PDF_DIR)index.fo -pdf $(BUILD_PDF_DIR)index.pdf |
99 | $(FOP) -q -fo $(BUILD_PDF_DIR)index.fo -pdf $(BUILD_PDF_DIR)index.pdf |
- | 100 | imgconvert: |
|
- | 101 | cd src/images; ./convert |
|
102 | 102 | ||
103 | distclean: clean |
103 | distclean: clean |
104 | 104 | ||
105 | clean: |
105 | clean: |
106 | rm -rf build |
106 | rm -rf build |