help-make
[Top][All Lists]
Advanced

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

RE: Help needed to check whether a directory exists


From: David Aldrich
Subject: RE: Help needed to check whether a directory exists
Date: Tue, 22 Nov 2011 10:22:13 +0000

> The text above is resolving into a variable assignment (!!):
> 
> if test -d /usr/[...]tory; BOOST_INC := /usr/include/boost141; [...]
> 
> which is why you're not getting an error.  Believe it or not that's a valid
> variable assignment statement in GNU make.
> 
> You'll want to do something like this instead:
> 
> ifneq (,$(wildcard /usr/include/boost141/.))
>     $(info Using Boost 1.41 directory)
>     BOOST_INC := /usr/include/boost141
>     BOOST_LIB := boost141/boost_python-mt else
>     $(info Using default Boost location)
>     BOOST_INC := /usr/include/boost
>     BOOST_LIB := boost_python-mt
> endif

Hi Paul

Thanks very much for putting me right on this.  Your code fixed my problem.

Best regards

David



reply via email to

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