[R-SIG-Mac] Using Makefile in my package

Simon Urbanek simon.urbanek at r-project.org
Wed May 16 19:42:38 CEST 2007


you should consider using Makevars instead, because creating a  
Makefile highly increases the risk of your package breaking on  
various systems. In addition, changes in R will likely break your  
Makefile if you rely on some internals of R. That is precisely why it  
is strongly recommended to use Makevars.

Also you didn't send us your Makefile, so we cannot tell you what you  
did wrong in your setup.


On May 16, 2007, at 1:02 PM, statmobile at gmail.com wrote:

> I am trying to create a Makefile for my C source code in my library.
> Yet, whenever I try to build the package I get:
> $ R CMD build spatrr
> * checking for file 'spatrr/DESCRIPTION' ... OK
> * preparing 'spatrr':
> * checking DESCRIPTION meta-information ... OK
> * cleaning src
> make: /Library/Frameworks/R.framework/Resources/etc/Makeconf: No such
> file or directory
> make: *** No rule to make target
> `/Library/Frameworks/R.framework/Resources/etc/Makeconf'.  Stop.
> * removing junk files
> * checking for LF line-endings in source files
> * checking for empty or unneeded directories
> * building 'spatrr_1.0.tar.gz'
> I've noticed some older posts pointing out that references to Makeconf
> should be $(R_HOME)/etc${R_ARCH}/Makeconf, but everywhere I look this
> seems to be setup correctly.
> I am using the standard binary download of R 2.5.0 on OS X 10.4.
> Thanks in advance for any help!
> -- 
> To know that we know what we know, and that we do not know what we do
> not know, that is true knowledge --Henry David Thoreau (quoting
> Confucius): Walden
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

More information about the R-SIG-Mac mailing list