bugmake - Bugs: bug #8035, undefined special variables

 
 

bug #8035: undefined special variables

Submitter:  None
Submitted:  Sat 06 Mar 2004 07:56:25 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.80 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 Jan 2023 03:05:37 PM UTC, comment #1: 

This was fixed via bug #63439

Paul D. Smith <psmith>
Group administrator
Sat 06 Mar 2004 07:56:25 PM UTC, original submission:  


Hi,

when calling make with the --warn-undefined-variables, make may issue a warning for undefined special variables. Example:

#------ makefile -----
all:
        echo $(MAKECMDGOALS)
#---------------------

"make --warn-undefined-variables -f makefile" results in the warning

makefile:2: warning: undefined variable `MAKECMDGOALS'

whereas for "make --warn-undefined-variables -f makefile all" there is no such warning.

Suggestion: make should always define its special variables, even if they are empty.

Regards,

Stephan Wefing (wefing at gmx dot de)

P.S: my platform is i686-pc-linux-gnu

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-02 psmith StatusNone Duplicate
        Open/ClosedOpen Closed
    2005-06-26 psmith Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code