Skip to content

Commit

Permalink
Fix ditaa compile error on latest Ubuntu
Browse files Browse the repository at this point in the history
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
  • Loading branch information
avpatel committed Jan 21, 2025
1 parent bb23ad1 commit e071967
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
DOCKER_RUN := docker run --rm -v ${PWD}:/build -w /build \
riscvintl/riscv-docs-base-container-image:latest

DEPS += images/intro-image1.png
DEPS += src/bibliography.bib
DEPS += src/contributors.adoc
DEPS += src/intro.adoc
Expand All @@ -25,6 +24,8 @@ DEPS += src/bibliography.adoc

TARGETS += riscv-semihosting.pdf

IMAGES += images/intro-image1.png

ASCIIDOCTOR_PDF := asciidoctor-pdf
OPTIONS := --trace \
-a compress \
Expand All @@ -36,16 +37,17 @@ REQUIRES := --require=asciidoctor-bibtex \
--require=asciidoctor-diagram \
--require=asciidoctor-mathematical

.PHONY: all clean
.PHONY: all images clean

all: $(TARGETS)
images: $(IMAGES)

# Preserve all intermediate files
.SECONDARY:

images/%.png: src/%.ditaa
mkdir -p `dirname $@`
ditaa $< $@
java -jar `which ditaa` $< $@

%.pdf: %.adoc $(DEPS)
@echo "Checking if Docker is available..."
Expand Down
Binary file modified images/intro-image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e071967

Please sign in to comment.