This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: user hostile gobbledygook in top level Makefile
Alexandre Oliva <aoliva@redhat.com> writes:
|> On Nov 21, 2000, "Zack Weinberg" <zackw@Stanford.EDU> wrote:
|>
|> >> > "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
|>
|> >> The purpose seems to be to replace `BOOT_CFLAGS=' with `XFOO=', as
|> >> long as $(BOOT_CFLAGS) is empty.
|>
|> > Oh yuck, surely there's a better way to achieve that?
|>
|> "`test 'x$(BOOT_CFLAGS)' = x || echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)'`"
I think the purpose of the command as it is written now is to avoid
explict empty arguments.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg