[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ifdef ... endif issue

From: Daniel Neuberger
Subject: Re: ifdef ... endif issue
Date: Thu, 18 Aug 2011 11:05:57 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv: Gecko/20110414 Thunderbird/3.1.10

I don't think you can do what you're trying to achieve.  AFAIK the
if .. endif syntax used by automake is for conditionals only (see:
Conditionals.html) and there is nothing such as "ifdef".

ifdef...endif is GNU make syntax. I found some old mail now, that tells
me, that automake doesn't accept that syntax, although it doesn't need
to process it. The ifdef...endif syntax would be interpreted by GNU
make. Of course
my example probably would need to be interpreted by automake too,
because WIN32_EXTRA_LDFLAGS is set, before it gets extended. But to know
that, automake would need to understand this syntax.

However, what I wanted to do is not possible atm, so I restored the old
Makefile code.

Just found this old thread, but was able to find the following workaround:

In, add something like:

MYMAKE='include $(top_srcdir)/'

In, add:


This way automake will make the substitution, but leave processing of the include directive to make.

The downside is that your build will be less portable.

Just thought I'd share in case others were still having the same problem.

- Daniel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]