39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
|
|
From 8c7de0471c1de088ff3c332590ea91a71d4273c0 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Alexander Sosedkin <asosedkin@redhat.com>
|
||
|
|
Date: Mon, 20 Feb 2023 11:39:28 +0100
|
||
|
|
Subject: [PATCH] Makefile: update for asciidoc 10
|
||
|
|
|
||
|
|
---
|
||
|
|
Makefile | 9 +++++++--
|
||
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/Makefile b/Makefile
|
||
|
|
index f99dc6d..e99ca19 100644
|
||
|
|
--- a/Makefile
|
||
|
|
+++ b/Makefile
|
||
|
|
@@ -10,6 +10,11 @@ SCRIPTS=update-crypto-policies fips-finish-install fips-mode-setup
|
||
|
|
NUM_PROCS = $$(getconf _NPROCESSORS_ONLN)
|
||
|
|
PYVERSION = -3
|
||
|
|
-ASCIIDOC?=asciidoc.py
|
||
|
|
+ASCIIDOC?=asciidoc
|
||
|
|
+ifneq ("$(wildcard /usr/lib/python*/*/asciidoc/resources/docbook-xsl/manpage.xsl)","")
|
||
|
|
+MANPAGEXSL?=$(wildcard /usr/lib/python*/*/asciidoc/resources/docbook-xsl/manpage.xsl)
|
||
|
|
+else
|
||
|
|
+MANPAGEXSL?=/usr/share/asciidoc/docbook-xsl/manpage.xsl
|
||
|
|
+endif
|
||
|
|
|
||
|
|
all: build
|
||
|
|
|
||
|
|
@@ -111,7 +116,7 @@ clean:
|
||
|
|
|
||
|
|
%: %.txt
|
||
|
|
$(ASCIIDOC) -v -d manpage -b docbook $<
|
||
|
|
- xsltproc --nonet -o $@ /usr/share/asciidoc/docbook-xsl/manpage.xsl $@.xml
|
||
|
|
+ xsltproc --nonet -o $@ ${MANPAGEXSL} $@.xml
|
||
|
|
|
||
|
|
dist:
|
||
|
|
rm -rf crypto-policies && git clone . crypto-policies && rm -rf crypto-policies/.git/ && tar -czf crypto-policies-git$(VERSION).tar.gz crypto-policies && rm -rf crypto-policies
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|