Best practice for extracting information from a makefile
Andreas Schwab
schwab at redhat.com
Tue Aug 16 13:24:59 UTC 2011
Richard Shaw <hobbes1069 at gmail.com> writes:
> I was hoping something like "make -p ..." would work but it doesn't
> evaluated 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
Andreas.
--
Andreas Schwab, schwab at redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."
More information about the devel
mailing list