Best practice for extracting information from a makefile
Richard Shaw
hobbes1069 at gmail.com
Tue Aug 16 14:02:02 UTC 2011
On Tue, Aug 16, 2011 at 8:24 AM, Andreas Schwab <schwab at redhat.com> wrote:
> Richard Shaw <hobbes1069 at gmail.com> writes:
>
>> I was hoping something like "make -p ..." would work but it doesn't
>> evaluate the variables, which seems useless since if I just wanted
>> the raw output 'cat' would work.
>
> $ make -f Makefile -f - <<<'echo-foo:; @echo $(foo)' echo-foo
Not only is it a obfuscation contest winner, but it worked!
Thanks,
Richard
More information about the devel
mailing list