3rd PATCH to pre-select languages to be built

Alexandre Oliva oliva@dcc.unicamp.br
Mon Oct 26 03:15:00 GMT 1998


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




More information about the Gcc-patches mailing list