]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables/Makefile: Split nft-variant man page list
authorPhil Sutter <phil@nwl.cc>
Mon, 5 Dec 2022 17:56:09 +0000 (18:56 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 14 Dec 2022 14:47:14 +0000 (15:47 +0100)
Some of them are not generated and must therefore be distributed. Hence
add them to a 'dist_man_MANS' variable. This leaves only generated
entries in the non-dist one, so use that to reduce the CLEANFILES list.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/Makefile.am

index 77202ad80934fc3a3eea54d4d6252d02a951582b..7ca2b1a4ba76272a6cd9be64551a3e66f9887183 100644 (file)
@@ -66,19 +66,15 @@ man_MANS         = iptables.8 iptables-restore.8 iptables-save.8 \
 sbin_SCRIPTS     = iptables-apply
 
 if ENABLE_NFTABLES
-man_MANS       += xtables-nft.8 xtables-translate.8 xtables-legacy.8 \
-                   iptables-translate.8 ip6tables-translate.8 \
+man_MANS       += iptables-translate.8 ip6tables-translate.8 \
                   iptables-restore-translate.8 ip6tables-restore-translate.8 \
-                   xtables-monitor.8 \
-                   arptables-nft.8 arptables-nft-restore.8 arptables-nft-save.8 \
-                   ebtables-nft.8
+                  xtables-monitor.8
+
+dist_man_MANS   = xtables-nft.8 xtables-translate.8 xtables-legacy.8 \
+                  arptables-nft.8 arptables-nft-restore.8 arptables-nft-save.8 \
+                  ebtables-nft.8
 endif
-CLEANFILES       = iptables.8 xtables-monitor.8 \
-                  iptables-xml.1 iptables-apply.8 \
-                  iptables-extensions.8 iptables-extensions.8.tmpl \
-                  iptables-restore.8 iptables-save.8 \
-                  iptables-restore-translate.8 ip6tables-restore-translate.8 \
-                  iptables-translate.8 ip6tables-translate.8
+CLEANFILES       = ${man_MANS} iptables-extensions.8.tmpl
 
 vx_bin_links   = iptables-xml
 if ENABLE_IPV4