This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ifeq


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]