aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-priv-pdf.yml2
-rw-r--r--.github/workflows/build-unpriv-pdf.yml2
-rw-r--r--build/priv.mk22
-rw-r--r--build/unpriv.mk22
4 files changed, 46 insertions, 2 deletions
diff --git a/.github/workflows/build-priv-pdf.yml b/.github/workflows/build-priv-pdf.yml
index 17405f4..3bc5064 100644
--- a/.github/workflows/build-priv-pdf.yml
+++ b/.github/workflows/build-priv-pdf.yml
@@ -66,7 +66,7 @@ jobs:
working-directory: ./build
run: |
PATH=${PATH}:${BUNDLE_BIN}:$(npm bin) \
- make
+ make -f priv.mk
- name: Archive PDF result
uses: actions/upload-artifact@v3
with:
diff --git a/.github/workflows/build-unpriv-pdf.yml b/.github/workflows/build-unpriv-pdf.yml
index 345d113..a9d97fa 100644
--- a/.github/workflows/build-unpriv-pdf.yml
+++ b/.github/workflows/build-unpriv-pdf.yml
@@ -66,7 +66,7 @@ jobs:
working-directory: ./build
run: |
PATH=${PATH}:${BUNDLE_BIN}:$(npm bin) \
- make
+ make -f unpriv.mk
- name: Archive PDF result
uses: actions/upload-artifact@v3
with:
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