build: make clean removes .*.d and *.d

Message ID
State Superseded
Headers show

Commit Message

Pablo Neira Ayuso Sept. 10, 2012, 10:28 a.m.
From: Pablo Neira Ayuso <>

While changing from master to nf-nat branch, I hit this error:

make[2]: ***   CC       libipt_CLUSTERIP.oo
No hay ninguna regla para construir el objetivo `../include/net/netfilter/nf_nat.h', necesario para `libipt_DNAT.oo'.  Alto.

by removing *.d and .*.d I get it fixed. Add this to `make clean'
so I can avoid doing this by hand.

Signed-off-by: Pablo Neira Ayuso <>
 extensions/ |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/extensions/ b/extensions/
index 218dc3a..88ab31d 100644
--- a/extensions/
+++ b/extensions/
@@ -76,7 +76,7 @@  install: ${targets_install}
 	if test -n "${targets_install}"; then install -pm0755 $^ "${DESTDIR}${xtlibdir}/"; fi;
-	rm -f *.o *.oo *.so *.a {matches,targets}[46].man initext.c initext4.c initext6.c;
+	rm -f *.o *.oo *.so *.a .*.d *.d {matches,targets}[46].man initext.c initext4.c initext6.c;
 distclean: clean
 	rm -f .*.d .*.dd;