: fix a2x: ERROR: missing --destination-dir: ./doc
RFC PATCH 1/1 : fix a2x: ERROR: missing --destination-dir: ./doc
Since recently, I'm getting this build error from nftables, quite definitely because I am building in a separate directory, and not in the source tree itself.
GEN doc/nft.8 GEN doc/libnftables-json.5 GEN doc/libnftables.3 a2x: ERROR: missing --destination-dir: ./doc make[2]: *** [Makefile:1922: doc/nft.8] Error 1
May I suggest attached patch.
An alternative might be an entry in AC_CONFIG_FILES? In the source trees at osmocom we usually have a Makefile generated in each output dir, which solves any missing directory problems.
I haven't investigated the cause, maybe it is some change on my system that suddenly exposes this; there was some serious package upgrading going on half an hour ago.
Thanks!
~N
Signature · 7 lines
- Neels Hofmeyr <[email protected]> http://www.sysmocom.de/ ======================================================================= * sysmocom - systems for mobile communications GmbH * Alt-Moabit 93 * 10559 Berlin, Germany * Sitz / Registered office: Berlin, HRB 134158 B * Geschäftsführer / Managing Directors: Harald Welte
From b15204aa58c09d2a9368aa6c074be086fc481ece Mon Sep 17 00:00:00 2001
From: Neels Hofmeyr <[email protected]>
Date: Fri, 8 Mar 2024 00:42:50 +0100
Subject: [PATCH] mkdir $(builddir}/doc
When building separately from the source tree (as in ../src/configure), the 'doc' dir is not present from just the source tree. Create the dir before calling a2x.
--- Makefile.am | 1 + 1 file changed, 1 insertion(+)
Makefile.am +1 -0
@@ -342,6 +342,7 @@ EXTRA_DIST += \ CLEANFILES += doc/*~ doc/nft.8: $(ASCIIDOCS) + mkdir -p ${builddir}/doc $(AM_V_GEN)$(A2X) $(A2X_OPTS_MANPAGE) $< .adoc.3:
Signature · 1 line
2.43.0
Phil Sutter
reviewerQuoted 4 lines · Neels Hofmeyr
Since recently, I'm getting this build error from nftables, quite definitely because I am building in a separate directory, and not in the source tree itself.
Quoted 8 lines
GEN doc/nft.8 GEN doc/libnftables-json.5 GEN doc/libnftables.3 a2x: ERROR: missing --destination-dir: ./doc make[2]: *** [Makefile:1922: doc/nft.8] Error 1May I suggest attached patch.
Patch applied after adding "Makefile:" prefix and your SoB.
Thanks, Phil