This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: ifeq
- To: Travis Shirk <travis@mapquest.com>
- Subject: Re: ifeq
- From: Alexandre Oliva <oliva@dcc.unicamp.br>
- Date: 03 Jun 1999 22:27:40 -0300
- Cc: automake@gnu.org
- References: <Pine.LNX.4.10.9906031333080.21903-100000@leary.mapquest.com>
On Jun 3, 1999, Travis Shirk <travis@mapquest.com> wrote:
> I've got the following bit of code in my Makefile.am:
> ifeq ($(OS),Linux)
This is not a valid automake conditional. It is a GNU make extension,
that is not portable, and thus doesn't fit in automake's model, which
aims at generating totally portable Makefiles.
You could fool automake into accepting this stuff by setting, in
configure.in, ENDIF="endif" AC_SUBST(ENDIF), and using `@ENDIF@'
instead of `endif' in Makefile.am, so that automake won't try to
interpret `endif' as an automake conditional.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists