bug#77897: "make clean" should do a "rm -rf .deps"

Sam Varshavchik <[email protected]> Fri, 18 Apr 2025 07:56:49 -0400
Newsgroups gmane.comp.sysutils.automake.bugs
Message-ID <[email protected]>
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_ripper.email-scan.com-536706-1744977409-0001
Content-Type: text/plain; format=flowed; delsp=yes; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

.deps/filename gets created during building with --enable-dependency- 
tracking and should get removed by make clean. But it does not. For example:

main.h:

int helloworld();

main.c:

#include <main.h>

int helloworld()
{
    return 0;
}

int main()
{
    helloworld();
}

Set up a minimal Makefile.am and configure.ac to build this. Building this  
will create .deps/<filename> with a:

main.o: main.h main.c

Now: 1) 'rm -f main.h"  2) Remove the #include

Then try to build this:

make clean
make

Will fail because that dependency exists and make does not know how to build  
main.h. I have to rm -rf .deps myself.

automake 1.16.5


--=_ripper.email-scan.com-536706-1744977409-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCaAI+AQAKCRCKYPgoojZS
4rW3AP9zMM0YZn5SFladIkkAqrAX2dj5Mlv23qiHFJFyUH+n8AD+PugQk4+pjx2L
CTKdx2SbmHwbGrkg4SoeZbKdOTzITw8=
=Eoar
-----END PGP SIGNATURE-----

--=_ripper.email-scan.com-536706-1744977409-0001--