logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [Module::Build] Re: Module::Build appears not to respect "make install : msg#00060

Subject: Re: [Module::Build] Re: Module::Build appears not to respect "make install UNINST=1"
On 4/8/2004 6:22 PM, Ken Williams wrote:

Anyone know how widespread this 'MAKEFLAGS' thingy is? At worst, I guess people whose 'make's don't provide it will just be stuck with the existing behavior.

From the dmake manpage:

       MFLAGS          Is the list of flags that  were  given  on
                       the   command  line  including  a  leading
                       switch character.   The  -f  flag  is  not
                       included in this list.

       MAKEFLAGS       Is  the same as $(MFLAGS) but has no lead-
                       ing  switch  character.  (ie.   MFLAGS   =
                       -$(MAKEFLAGS))


Microsoft apparently doesn't provide documentation for nmake, but

nmake /p | grep MAKEFLAGS

    MAKEFLAGS = P

so it /appears/ to follow the convention.


And GNU make:

   Flags such as `-s' and `-k' are passed automatically to the
sub-`make' through the variable `MAKEFLAGS'.  This variable is set up
automatically by `make' to contain the flag letters that `make'
received.  Thus, if you do `make -ks' then `MAKEFLAGS' gets the value
`ks'.

   As a consequence, every sub-`make' gets a value for `MAKEFLAGS' in
its environment.  In response, it takes the flags from that value and
processes them as if they had been given as arguments.  *Note Summary
of Options: Options Summary.

   Likewise variables defined on the command line are passed to the
sub-`make' through `MAKEFLAGS'.  Words in the value of `MAKEFLAGS' that
contain `=', `make' treats as variable definitions just as if they
appeared on the command line.  *Note Overriding Variables: Overriding.


Randy.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>