From edd at debian.org  Wed May 13 17:53:05 2015
From: edd at debian.org (Dirk Eddelbuettel)
Date: Wed, 13 May 2015 10:53:05 -0500
Subject: [Rd] Alternative for wildcard gnu extension in Makevars
In-Reply-To: <20150513172750.Horde.XmEuGWEwhY5VU212D36XCEA@webmailnew.dds.nl>
References: <20150513172750.Horde.XmEuGWEwhY5VU212D36XCEA@webmailnew.dds.nl>
Message-ID: <21843.29537.86236.300996@max.nulle.part>


On 13 May 2015 at 17:27, Jan van der Laan wrote:
| 
| I have some cpp-files from another library (boost) in a subdirectory  
| in my src directory (src/boost_src). I include these using the  
| following two lines in my Makevars:
| 
| SOURCES = $(wildcard *.cpp boost_src/*.cpp)
| OBJECTS = $(SOURCES:.cpp=.o)
| 
| However, R CMD check complains about my use of 'wildcard'. How do I  
| handle this without any gnu extensions?

I looked into this a few weeks (months?) ago, and it would appear that you
cannot.

I would recommend the alternative offered in Writing R Extensions: renamed it
GNUmakefile or add a SystemRequirements: GNU make.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] Alternative for wildcard gnu extension in Makevars
Dirk Eddelbuettel