This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: user hostile gobbledygook in top level Makefile


Also sprach Alexandre Oliva:
} 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 like:

"`test -z '$(BOOT_CFLAGS)' || ...

myself :)

-- 
|| Bill Wendling			wendling@ncsa.uiuc.edu
|| Coding Simian

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]