crypto-policies/backport-Makefile-support-overriding-asciidoc-executable-name.patch

37 lines
1.0 KiB
Diff
Raw Normal View History

From 66c30b1e2de5fd37d610463a8fb6e70f6164fecc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Mon, 7 Nov 2022 16:56:43 +0100
Subject: [PATCH] Makefile: support overriding asciidoc executable name
Support `ASCIIDOC` override to specify another name for the asciidoc
executable. On Gentoo, only `asciidoc` is installed and there is no
`asciidoc.py`. Furthermore, this makes it possible to easily use
asciidoctor in place of asciidoc.
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 0d93587..f99dc6d 100644
--- a/Makefile
+++ b/Makefile
@@ -10,5 +10,6 @@ SCRIPTS=update-crypto-policies fips-finish-install fips-mode-setup
NUM_PROCS = $$(getconf _NPROCESSORS_ONLN)
PYVERSION = -3
+ASCIIDOC?=asciidoc.py
all: build
@@ -109,7 +110,7 @@ clean:
rm -rf output
%: %.txt
- asciidoc.py -v -d manpage -b docbook $<
+ $(ASCIIDOC) -v -d manpage -b docbook $<
xsltproc --nonet -o $@ /usr/share/asciidoc/docbook-xsl/manpage.xsl $@.xml
dist:
--
2.27.0