Make do with a2x when there is no asciidoctor

This commit is contained in:
Přemysl Eric Janouch 2024-12-24 15:43:35 +01:00
parent a09b11256b
commit ec656d8b2a
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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: