build: clean some extra build artefacts.
PATCH 1/1 build: clean some extra build artefacts.
Because extensions/Makefile.am does not contain a SUBDIRS variable listing extensions/ACCOUNT and extensions/pknock, when make distclean is run, make does not recurse into them. Add a distclean-local target to extensions/Makefile.am to fix this.
Makefile.mans creates .manpages.lst, but does not remove it. Add it to the clean target.
--- Makefile.mans.in | 2 +- extensions/Makefile.am | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
Makefile.mans.in +1 -1
@@ -40,4 +40,4 @@ targets.man: .manpages.lst ${wcman_targets} $(call man_run,${wlist_targets}) clean: - rm -f xtables-addons.8 matches.man targets.man + rm -f xtables-addons.8 matches.man targets.man .manpages.lst
extensions/Makefile.am +4 -0
@@ -26,4 +26,8 @@ install-exec-local: modules_install clean-local: clean_modules +distclean-local: + $(MAKE) -C ACCOUNT distclean + $(MAKE) -C pknock distclean + include ../Makefile.extra
Signature · 1 line
2.28.0
Quoted 4 lines · Jeremy Sowden
Because extensions/Makefile.am does not contain a
SUBDIRSvariable listing extensions/ACCOUNT and extensions/pknock, whenmake distcleanis run, make does not recurse into them. Add adistclean-localtarget to extensions/Makefile.am to fix this.
I find it suspicious that the userspace tools are not even built. Therefore, I just added those directories to SUBDIRS. This should conveniently also cure the need for an extra call to distcleaning.
Quoted 9 lines · Jan Engelhardt
Quoted 4 lines · Jeremy Sowden
Because extensions/Makefile.am does not contain a
SUBDIRSvariable listing extensions/ACCOUNT and extensions/pknock, whenmake distcleanis run, make does not recurse into them. Add adistclean-localtarget to extensions/Makefile.am to fix this.I find it suspicious that the userspace tools are not even built. Therefore, I just added those directories to SUBDIRS. This should conveniently also cure the need for an extra call to distcleaning.
Thanks,
J.