Skip to content

VPATH build of R on MacOSX

3 messages · Mick Jordan, Brian Ripley

#
I am trying to do VPATH builds of R3.1.3, i.e. binaries built outside 
the source directory. It works just fine on Linux but on Mac OSX 
(Mavericks) I get the following trace from make, after a successful 
configure step. Any insights gratefully received. make is GNU make 3.81 
on both systems.

bash-3.2$ make
make
make[1]: Nothing to be done for `R'.
make[1]: Nothing to be done for `R'.
make[2]: Nothing to be done for `R'.
mkdir ../share/R
mkdir ../share/dictionaries
mkdir ../share/encodings
mkdir ../share/java
mkdir ../share/licenses
mkdir ../share/make
mkdir ../share/sh
mkdir ../share/texmf
mkdir ../share/texmf/bibtex
mkdir ../share/texmf/bibtex/bib
mkdir ../share/texmf/bibtex/bst
mkdir ../share/texmf/tex
mkdir ../share/texmf/tex/latex
creating src/scripts/R.fe
mkdir ../../bin
install: ../../include/Rconfig.h: No such file or directory
make[2]: *** [Rconfig.tsa] Error 71
make[1]: *** [R] Error 1
make: *** [R] Error 1
#
On 3/31/15 10:19 AM, Mick Jordan wrote:
Answering my own question - it appears that if a build has already been 
done in the source directory, this problem occurs. With a pristine 
source directory a VPATH build works as expected.

Micki
#
On 31/03/2015 18:35, Mick Jordan wrote:
The problem is the incorrect expectations.  See
https://www.gnu.org/software/make/manual/html_node/General-Search.html .

And BTW, the OS is called 'OS X' and has been for a long time.