Skip to content
Prev 44518 / 63424 Next

Makevars that distinguish between OSX and *NIX

On 28/11/2012 14:36, sgerber wrote:
Well, OS X (sic) is a certified UNIX!

This is what a 'configure' script is used for (e.g. by package rgl). 
But you can write conditional code in commands in the Makevars, e.g. by

if test `uname` = "Darwin" ; then
else
fi

Please do not use GNU make misfeatures to do this if you want it to be 
portable (see 'Writing R Extensions').