bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #45211] MAKEFLAGS is not parsed until after makefiles are read on


From: Paul D. Smith
Subject: [bug #45211] MAKEFLAGS is not parsed until after makefiles are read on
Date: Sat, 30 May 2015 17:12:42 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

Update of bug #45211 (project make):

              Item Group:                    None => Enhancement            
                 Summary: Add option to MAKEFLAGS (How to set RM variable?) =>
MAKEFLAGS is not parsed until after makefiles are read on

    _______________________________________________________

Follow-up Comment #2:

The ?= assignment only sets variables if they are not already set.

The RM variable is set by default.

Resetting the state of make doesn't happen every time MAKEFLAGS is modified. 
It only happens once, after all makefiles are read in.

So, when the RM ?= rm assignment is seen the RM variable still has its default
value, and it is not assigned.  Then after all makefiles are read in,
MAKEFLAGS is processed and the default assignment for RM is removed, leaving
it empty.

I'll mark this as an enhancement request, to consider having changes to
MAKEFLAGS take effect immediately instead of after all makefiles are parsed,
but this seems like a low priority issue to me.

Why don't you use just "RM = rm" instead of "RM ?= rm", and then things would
work the way you want?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45211>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]