Toplevel patch: Autogenerate Makefile targets 3 (*-build-*)
DJ Delorie
dj@redhat.com
Wed Nov 13 13:57:00 GMT 2002
> * Makefile.tpl: Autogenerate (*-build-*).
> * Makefile.def: Add build_modules.
> * Makefile.in: Regenerate.
This one is fine except for...
> -$(ALL_BUILD_MODULES):
> - dir=`echo $@ | sed -e 's/all-build-//'`; \
> - if [ -f ./$${dir}/Makefile ] ; then \
> +[+ FOR build_modules +]
> +.PHONY: all-build-[+module+]
> +all-build-[+module+]:
> + if [ -f ./[+module+]/Makefile ] ; then \
There's supposed to be an '@' here, I don't know why the original
didn't have it...
> -$(CONFIGURE_BUILD_MODULES):
> - @dir=`echo $@ | sed -e 's/configure-build-//'`; \
> +.PHONY: configure-build-[+module+]
> +configure-build-[+module+]:
> if [ ! -d $(BUILD_SUBDIR) ]; then \
'@' here.
More information about the Gcc-patches
mailing list