aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-12-24 15:43:35 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-12-24 15:43:35 +0100
commitec656d8b2ae38ea2048971ac5cdccaa27452da1c (patch)
tree8c0597ad9a9ab602c2e2d4d90b9e71fb2bedf0a3
parenta09b11256b1ad540d6606912dab82a992f74b130 (diff)
downloadacid-ec656d8b2ae38ea2048971ac5cdccaa27452da1c.tar.gz
acid-ec656d8b2ae38ea2048971ac5cdccaa27452da1c.tar.xz
acid-ec656d8b2ae38ea2048971ac5cdccaa27452da1c.zip
Make do with a2x when there is no asciidoctor
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 455c22d..e7dfe61 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,8 @@ all: $(outputs)
acid: acid.go
go build -ldflags "-X 'main.projectVersion=$(version)'" -o $@
acid.1: acid.adoc
- asciidoctor -b manpage -a release-version=$(version) -o $@ acid.adoc
+ asciidoctor -b manpage -a release-version=$(version) -o $@ acid.adoc || \
+ a2x -d manpage -f manpage -a release-version=$(version) acid.adoc
test: all
go test
clean: