[Top][All Lists]

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

Re: VPATH question

From: Gisle Vanem
Subject: Re: VPATH question
Date: Fri, 24 Feb 2023 17:40:35 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Paul Smith wrote:

If you use "-d" you'll get the info you want:

    No implicit rule found for 'default'.
    Considering target file 'lib'.
    Finished prerequisites of target file 'lib'.
    No need to remake target 'lib'; using VPATH name 'apps/lib'.
   Finished prerequisites of target file 'default'.

Only adding 'MAKEFLAGS += --warn-undefined-variables' is somewhat

You should feel free to do that, if your makefiles are written such
that it doesn't give spurious warnings.  Make has silently expanded
empty variables to the empty string for 40 years and changing that as
the default behavior is not an option.

Ok thanks for the explanation. But I tend to use 'vpath %.c dir'
more and more. It seems a lot faster too.


reply via email to

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