This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Toplevel patch: Autogenerate Makefile targets 3 (*-build-*)
- From: DJ Delorie <dj at redhat dot com>
- To: neroden at twcny dot rr dot com
- Cc: gcc-patches at gcc dot gnu dot org, gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com
- Date: Wed, 13 Nov 2002 16:57:14 -0500
- Subject: Re: Toplevel patch: Autogenerate Makefile targets 3 (*-build-*)
- References: <20021113202039.GA21907@doctormoo>
> * 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.