Re: Best practice for extracting information from a makefile

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

 



On Tue, Aug 16, 2011 at 8:24 AM, Andreas Schwab <schwab@xxxxxxxxxx> wrote:
> Richard Shaw <hobbes1069@xxxxxxxxx> 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
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux