* [PATCH] build: make clean removes .*.d and *.d
@ 2012-09-10 10:28 pablo
2012-09-10 13:10 ` [PATCH] build: have `make clean` remove dep files too Jan Engelhardt
0 siblings, 1 reply; 3+ messages in thread
From: pablo @ 2012-09-10 10:28 UTC (permalink / raw)
To: netfilter-devel
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(-)
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;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] build: have `make clean` remove dep files too
2012-09-10 10:28 [PATCH] build: make clean removes .*.d and *.d pablo
@ 2012-09-10 13:10 ` Jan Engelhardt
2012-09-10 13:44 ` Pablo Neira Ayuso
0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2012-09-10 13:10 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
While changing branches, one can hit errors like:
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.
Pablo thinks dep files should be removed on `make clean`, and I
concur. (JFI, Note that native automake would not clear its ".deps"
directory.) Keep the "distclean: clean" line to keep invocations by
automake from the parent directory working.
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
This patch is fetchable on
git://git.inai.de/iptables master
extensions/GNUmakefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 218dc3a..4a8ff49 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -77,9 +77,9 @@ install: ${targets_install}
clean:
rm -f *.o *.oo *.so *.a {matches,targets}[46].man initext.c initext4.c initext6.c;
+ rm -f .*.d .*.dd;
distclean: clean
- rm -f .*.d .*.dd;
init%.o: init%.c
${AM_VERBOSE_CC} ${CC} ${AM_CPPFLAGS} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=$*_init ${CFLAGS} -o $@ -c $<;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] build: have `make clean` remove dep files too
2012-09-10 13:10 ` [PATCH] build: have `make clean` remove dep files too Jan Engelhardt
@ 2012-09-10 13:44 ` Pablo Neira Ayuso
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2012-09-10 13:44 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
On Mon, Sep 10, 2012 at 03:10:05PM +0200, Jan Engelhardt wrote:
> While changing branches, one can hit errors like:
>
> 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.
>
> Pablo thinks dep files should be removed on `make clean`, and I
> concur. (JFI, Note that native automake would not clear its ".deps"
> directory.) Keep the "distclean: clean" line to keep invocations by
> automake from the parent directory working.
As soon as I get it fixed for me is fine, I have applied this patch.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-10 13:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-10 10:28 [PATCH] build: make clean removes .*.d and *.d pablo
2012-09-10 13:10 ` [PATCH] build: have `make clean` remove dep files too Jan Engelhardt
2012-09-10 13:44 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.