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
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)'`"
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me