Skip to contentSkip to conversation

build: clean some extra build artefacts.

PATCH In review Jeremy Sowden 2 participants 3 messages Aug 29, 2020 – Aug 30, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 18e82b39882d..63424f7d558a 100644
@@ -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
index a487fd8c141a..e7e942127e59 100644
@@ -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
#1 lore raw
Quoted 4 lines · Jeremy Sowden

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.

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.

#2 lore raw
Quoted 9 lines · Jan Engelhardt
Quoted 4 lines · Jeremy Sowden

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.

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.