]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: have `make clean` remove dep files too
authorJan Engelhardt <jengelh@inai.de>
Mon, 10 Sep 2012 13:04:49 +0000 (15:04 +0200)
committerJan Engelhardt <jengelh@inai.de>
Mon, 10 Sep 2012 13:04:49 +0000 (15:04 +0200)
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>
extensions/GNUmakefile.in

index 218dc3ad42b6725a7de00d1a34dc4ea0e0e6c513..4a8ff49defb02dabb0b46c2f50f968a07f79961b 100644 (file)
@@ -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 $<;