automake
[Top][All Lists]
Advanced

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

Conditional target


From: Sergio Belkin
Subject: Conditional target
Date: Thu, 27 Jan 2011 00:40:10 -0300

Hi,

I have the target test, being:

tests = $(EXTRA_PROGRAMS)

I've added:

if forcestatic
tests: LIBS += $(STATIC_RESOLV)
end if

The problem is that automake it complains that .

tests was already defined in condition forcestatic, which is included
in condition TRUE ...
Makefile.am:150: ... `tests' previously defined here

So, how can I make a conditional target? In other Word how can I do
LIBS conditional (I need add static resolv in case of old glibc
version)

Thanks in advanve!

Thanks in advance


-- 
--
Sergio Belkin  http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified



reply via email to

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