URL:
  <https://savannah.gnu.org/bugs/?65999>

                 Summary: make --debug=makefile could be more descriptive
                   Group: make
               Submitter: boyski
               Submitted: Wed 17 Jul 2024 02:59:13 PM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: None
           Fixed Release: None
           Triage Status: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 17 Jul 2024 02:59:13 PM UTC By: David Boyce <boyski>
In the make command below the indented line says "File 'all' does not exist",
but in this case it's not making a file because "all" has been declared as a
phony target which is not necessarily expected to exist in the form of a file.
The difference between making a file and a phony target may be important in
debugging so I suggest that a message like "Phony target 'all' needs updating"
or similar for phony targets would be more instructive.

$ echo -e ".PHONY: all\nall:" | make-git -f- --debug=makefile
GNU Make 4.4.90
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
 File 'all' does not exist.
Must remake target 'all'.
Successfully remade target file 'all'.
make-git: Nothing to be done for 'all'.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65999>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to