diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/Makefile | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/build/Makefile b/build/Makefile index ed2a7d0..f88b5f9 100644 --- a/build/Makefile +++ b/build/Makefile @@ -1,7 +1,7 @@ # Makefile # Build Targets -TARGETS := priv unpriv +TARGETS := priv-pdf unpriv-pdf priv-html unpriv-html .PHONY: all $(TARGETS) @@ -34,6 +34,20 @@ unpriv-isa-asciidoc.pdf: $(SRCDIR)/riscv-isa-unpr-conv-review.adoc $(SRCDIR)/*.a asciidoctor-pdf $(ASCIIDOCTOR_OPTS) --out-file=$@.tmp $< mv $@.tmp $@ +# Privileged ISA HTML +priv-html: priv-isa-asciidoc.html + +priv-isa-asciidoc.html: $(SRCDIR)/riscv-privileged.adoc + @echo "Building Privilege ISA HTML" + asciidoctor $(ASCIIDOCTOR_OPTS) --out-file=$@ $< + +# Unprivileged ISA HTML +unpriv-html: unpriv-isa-asciidoc.html + +unpriv-isa-asciidoc.html: $(SRCDIR)/riscv-isa-unpr-conv-review.adoc + @echo "Building Unprivilege ISA HTML" + asciidoctor $(ASCIIDOCTOR_OPTS) --out-file=$@ $< + clean: @if [ -f priv-isa-asciidoc.pdf ]; then \ echo "Removing priv-isa-asciidoc.pdf"; \ @@ -43,3 +57,11 @@ clean: echo "Removing unpriv-isa-asciidoc.pdf"; \ rm -f unpriv-isa-asciidoc.pdf; \ fi + @if [ -f priv-isa-asciidoc.html ]; then \ + echo "Removing priv-isa-asciidoc.html"; \ + rm -f priv-isa-asciidoc.html; \ + fi + @if [ -f unpriv-isa-asciidoc.html ]; then \ + echo "Removing unpriv-isa-asciidoc.html"; \ + rm -f unpriv-isa-asciidoc.html; \ + fi |