diff options
author | Bill Traynor <wmat@riscv.org> | 2023-01-30 15:00:17 -0500 |
---|---|---|
committer | Bill Traynor <wmat@riscv.org> | 2023-01-30 15:00:17 -0500 |
commit | 3d0cb27c6765e76a70503495d69b9d2c6603e979 (patch) | |
tree | 841e2f1b0b381656ebaf06dcd0164e23bc4b2859 /build | |
parent | b1f8e25915071ed29b9be340a6e4a69e071b21bb (diff) | |
download | riscv-isa-manual-3d0cb27c6765e76a70503495d69b9d2c6603e979.zip riscv-isa-manual-3d0cb27c6765e76a70503495d69b9d2c6603e979.tar.gz riscv-isa-manual-3d0cb27c6765e76a70503495d69b9d2c6603e979.tar.bz2 |
Separating builds
Separating builds
Diffstat (limited to 'build')
-rw-r--r-- | build/priv.mk | 22 | ||||
-rw-r--r-- | build/unpriv.mk | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/build/priv.mk b/build/priv.mk new file mode 100644 index 0000000..f287023 --- /dev/null +++ b/build/priv.mk @@ -0,0 +1,22 @@ +HEADER_SOURCE := ../src/riscv-privileged.adoc +#HEADER_SOURCE := ../src/riscv-isa-unpr-conv-review.adoc +PDF_RESULT := priv-isa-asciidoc.pdf +#PDF_RESULT := unpriv-isa-asciidoc.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 \ + --failure-level=ERROR \ + --require=asciidoctor-bibtex \ + --require=asciidoctor-diagram \ + --require=asciidoctor-mathematical \ + --trace \ + --out-file=$@ \ + $(HEADER_SOURCE)
\ No newline at end of file diff --git a/build/unpriv.mk b/build/unpriv.mk new file mode 100644 index 0000000..aa7158d --- /dev/null +++ b/build/unpriv.mk @@ -0,0 +1,22 @@ +#HEADER_SOURCE := ../src/riscv-privileged.adoc +HEADER_SOURCE := ../src/riscv-isa-unpr-conv-review.adoc +#PDF_RESULT := priv-isa-asciidoc.pdf +PDF_RESULT := unpriv-isa-asciidoc.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 \ + --failure-level=ERROR \ + --require=asciidoctor-bibtex \ + --require=asciidoctor-diagram \ + --require=asciidoctor-mathematical \ + --trace \ + --out-file=$@ \ + $(HEADER_SOURCE)
\ No newline at end of file |