forked from riscv/docs-dev-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (19 loc) · 673 Bytes
/
Makefile
File metadata and controls
21 lines (19 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
HEADER_SOURCE := book_header.adoc
PDF_RESULT := docs-dev-guide.pdf
# Not all document sources are yet listed here. Not just adoc files but
# images/ and resources/ content. Once they are the target can remove the
# phony use.
SOURCES := $(HEADER_SOURCE)
all: $(PDF_RESULT)
.PHONY: $(PDF_RESULT)
$(PDF_RESULT): $(SOURCES)
asciidoctor-pdf \
--attribute=mathematical-format=svg \
--attribute=pdf-fontsdir=resources/fonts \
--attribute=pdf-theme=resources/themes/riscv-pdf.yml \
--failure-level=ERROR \
--require=asciidoctor-bibtex \
--require=asciidoctor-diagram \
--require=asciidoctor-mathematical \
--out-file=$@ \
$(HEADER_SOURCE)