This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3rd PATCH to pre-select languages to be built
Manfred Hollstein <manfred@s-direktnet.de> writes:
> # This will be set by configure to "enabled" if the compiler for
> # this particular language has been built, or to "disabled" if not.
> LANG_ENABLED = @lang_enabled@
> all: all.$(LANG_ENABLED)
> all.enabled: <list of all dependencies>
> <commands for this target>
> all.disabled:
> @echo Nothing to be done for target `echo $@ | sed -e 's,\.disabled,,'` >&2
> @true
Mostly equivalent... I'd rather juts go and put @lang_enabled@ as
all.@lang_enabled@, but that's up to you.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil