* [PATCH nft 0/2] doc: fix cleaning of man-pages
@ 2023-08-06 10:22 Jeremy Sowden
2023-08-06 10:22 ` [PATCH nft 1/2] doc: move man-pages to `dist_man_MANS` Jeremy Sowden
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jeremy Sowden @ 2023-08-06 10:22 UTC (permalink / raw)
To: Netfilter Devel
Currently, the man-page pages are generated by `make dist`, but removed
by `make clean`. By constrast, the flex and bison C sources, which are
also generated by `make dist`, are removed by `make maintainer-clean`.
The latter are handled automatically by automake, and in fact a change
was committed to src/Makfile.am to remove them from `CLEANFILES` for
this reason:
http://git.netfilter.org/nftables/commit/src/Makefile.am?id=3eaba1125798c7b8f2e8ad3d1a572de6b84f4e5a
However, automake doesn't automatically generate man-pages in `make
dist`: we have to tell it to do so; and thus we also have to tell it
when to clean them. This patch-set changes the clean target for the
man-pages to follow the pattern automake uses for bison and flex.
Jeremy Sowden (2):
doc: move man-pages to `dist_man_MANS`
doc: move man-pages to `MAINTAINERCLEANFILES`
doc/Makefile.am | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
2.40.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH nft 1/2] doc: move man-pages to `dist_man_MANS`
2023-08-06 10:22 [PATCH nft 0/2] doc: fix cleaning of man-pages Jeremy Sowden
@ 2023-08-06 10:22 ` Jeremy Sowden
2023-08-06 10:22 ` [PATCH nft 2/2] doc: move man-pages to `MAINTAINERCLEANFILES` Jeremy Sowden
2023-08-10 7:15 ` [PATCH nft 0/2] doc: fix cleaning of man-pages Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Jeremy Sowden @ 2023-08-06 10:22 UTC (permalink / raw)
To: Netfilter Devel
Removes the need to add them to `EXTRA_DIST`.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
doc/Makefile.am | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 21482320e418..5a64e39b48cf 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,5 +1,5 @@
if BUILD_MAN
-man_MANS = nft.8 libnftables-json.5 libnftables.3
+dist_man_MANS = nft.8 libnftables-json.5 libnftables.3
A2X_OPTS_MANPAGE = -L --doctype manpage --format manpage -D ${builddir}
@@ -12,7 +12,7 @@ ASCIIDOC_INCLUDES = \
statements.txt
ASCIIDOCS = ${ASCIIDOC_MAIN} ${ASCIIDOC_INCLUDES}
-EXTRA_DIST = ${ASCIIDOCS} ${man_MANS} libnftables-json.adoc libnftables.adoc
+EXTRA_DIST = ${ASCIIDOCS} libnftables-json.adoc libnftables.adoc
CLEANFILES = \
*~
@@ -26,5 +26,5 @@ nft.8: ${ASCIIDOCS}
.adoc.5:
${AM_V_GEN}${A2X} ${A2X_OPTS_MANPAGE} $<
-CLEANFILES += ${man_MANS}
+CLEANFILES += ${dist_man_MANS}
endif
--
2.40.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH nft 2/2] doc: move man-pages to `MAINTAINERCLEANFILES`
2023-08-06 10:22 [PATCH nft 0/2] doc: fix cleaning of man-pages Jeremy Sowden
2023-08-06 10:22 ` [PATCH nft 1/2] doc: move man-pages to `dist_man_MANS` Jeremy Sowden
@ 2023-08-06 10:22 ` Jeremy Sowden
2023-08-10 7:15 ` [PATCH nft 0/2] doc: fix cleaning of man-pages Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Jeremy Sowden @ 2023-08-06 10:22 UTC (permalink / raw)
To: Netfilter Devel
Since the man-pages are built and included in the distribution
tar-balls, the appropriate clean target is `maintainer-clean`.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
doc/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 5a64e39b48cf..b43cb08d2d14 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -26,5 +26,5 @@ nft.8: ${ASCIIDOCS}
.adoc.5:
${AM_V_GEN}${A2X} ${A2X_OPTS_MANPAGE} $<
-CLEANFILES += ${dist_man_MANS}
+MAINTAINERCLEANFILES = ${dist_man_MANS}
endif
--
2.40.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH nft 0/2] doc: fix cleaning of man-pages
2023-08-06 10:22 [PATCH nft 0/2] doc: fix cleaning of man-pages Jeremy Sowden
2023-08-06 10:22 ` [PATCH nft 1/2] doc: move man-pages to `dist_man_MANS` Jeremy Sowden
2023-08-06 10:22 ` [PATCH nft 2/2] doc: move man-pages to `MAINTAINERCLEANFILES` Jeremy Sowden
@ 2023-08-10 7:15 ` Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2023-08-10 7:15 UTC (permalink / raw)
To: Jeremy Sowden; +Cc: Netfilter Devel
On Sun, Aug 06, 2023 at 11:22:46AM +0100, Jeremy Sowden wrote:
> Currently, the man-page pages are generated by `make dist`, but removed
> by `make clean`. By constrast, the flex and bison C sources, which are
> also generated by `make dist`, are removed by `make maintainer-clean`.
> The latter are handled automatically by automake, and in fact a change
> was committed to src/Makfile.am to remove them from `CLEANFILES` for
> this reason:
>
> http://git.netfilter.org/nftables/commit/src/Makefile.am?id=3eaba1125798c7b8f2e8ad3d1a572de6b84f4e5a
>
> However, automake doesn't automatically generate man-pages in `make
> dist`: we have to tell it to do so; and thus we also have to tell it
> when to clean them. This patch-set changes the clean target for the
> man-pages to follow the pattern automake uses for bison and flex.
Series applied, thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-10 7:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-06 10:22 [PATCH nft 0/2] doc: fix cleaning of man-pages Jeremy Sowden
2023-08-06 10:22 ` [PATCH nft 1/2] doc: move man-pages to `dist_man_MANS` Jeremy Sowden
2023-08-06 10:22 ` [PATCH nft 2/2] doc: move man-pages to `MAINTAINERCLEANFILES` Jeremy Sowden
2023-08-10 7:15 ` [PATCH nft 0/2] doc: fix cleaning of man-pages Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).