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

login
register
mail settings
Submitter Pablo Neira
Date Sept. 10, 2012, 10:28 a.m.
Message ID <1347272891-3015-1-git-send-email-pablo@netfilter.org>
Download mbox | patch
Permalink /patch/182840/
State Superseded
Headers show

Comments

Pablo Neira - Sept. 10, 2012, 10:28 a.m.
From: Pablo Neira Ayuso <pablo@netfilter.org>

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 <pablo@netfilter.org>
---
 extensions/GNUmakefile.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 218dc3a..88ab31d 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -76,7 +76,7 @@  install: ${targets_install}
 	if test -n "${targets_install}"; then install -pm0755 $^ "${DESTDIR}${xtlibdir}/"; fi;
 
 clean:
-	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;