[Top][All Lists]

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

Re: changing MAKEFLAGS to affect current makefile

From: Boris Kolpackov
Subject: Re: changing MAKEFLAGS to affect current makefile
Date: Tue, 27 Apr 2004 12:40:32 -0500
User-agent: Mutt/1.5.4i

Paul D. Smith <address@hidden> writes:

> %% Boris Kolpackov <address@hidden> writes:
>   bk> Actually it sort of works. For example the following two lines at the
>   bk> beginning of the makefile
>   bk> .SUFFIXES:
>   bk> MAKEFLAGS += -r
>   bk> are equivalent to running 'make -r'.
> Actually, not.  The MAKEFLAGS+=-r is not doing anything here.
> .SUFFIXES: will remove all builtin suffix rules, but it won't impact
> builtin pattern rules.

I disagree. Built-in pattern rules are installed only after makefile
is read (main.c:1624). Before that (main.c:1491) flags are re-evaluated
in case they were (re)set in the makefile. I even put debug print in 
install_default_implicit_rules to make sure ;-).


Attachment: pgpzBe1rWFvjY.pgp
Description: PGP signature

reply via email to

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