aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBill Traynor <wmat@riscv.org>2023-01-30 15:00:17 -0500
committerBill Traynor <wmat@riscv.org>2023-01-30 15:00:17 -0500
commit3d0cb27c6765e76a70503495d69b9d2c6603e979 (patch)
tree841e2f1b0b381656ebaf06dcd0164e23bc4b2859 /build
parentb1f8e25915071ed29b9be340a6e4a69e071b21bb (diff)
downloadriscv-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.mk22
-rw-r--r--build/unpriv.mk22
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