[sr #111140] autoscan gets confused by Makefile rules that start with '-' to ignore errors

Paul Eggert <[email protected]> Mon, 21 Oct 2024 14:17:23 -0400 (EDT)
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Update of sr #111140 (group autoconf):

                Priority:       5 - Unprioritized => 2 - Eventually         
                Severity:              3 - Normal => 1 - Wish               

    _______________________________________________________

Follow-up Comment #1:

Unfortunately the suggested heuristic would cause autoscan to sometimes not
report a library that it should report, since continuation lines can start
with "\t" followed by "-".

When in doubt it is better for autoscan to be safe than sorry, and suggest the
library; you can ignore the suggestion. (Alternatively 'autoscan' could be
modified to do a full 'make' parse, but that'd be a big project.)

To prevent autoscan from suggesting "-ln", you can use a macro or (less
obviously) an extra "-". For example:

$ cat Makefile
IGNORE_FAILURE = -
symlinks_a:
	$(IGNORE_FAILURE)ln -s foo bar

symlinks_b:
	--ln -s foo bar




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?111140>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZxaaswAKCRCqLAuaBUf3
Tq8xAP0QxrIVSV6rhbonRLiwiO9LSCP9Y0jkQYOb7Cd1ZiYnUAEAuGs4l5LruwFc
q53T6B5nluHjSZ2jrAnvIm5KwMajPgE=
=53c0
-----END PGP SIGNATURE-----