From murdoch.duncan at gmail.com  Wed Jun 13 11:57:21 2012
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Wed, 13 Jun 2012 05:57:21 -0400
Subject: [Rd] How to change name of .so/.dll
In-Reply-To: <loom.20120613T103830-686@post.gmane.org>
References: <2423c6e3a75c2c74b2854cf43d38c4c5.squirrel@webmail.plus.net>
	<3b35039e25ae0bf3f17982d074406911.squirrel@webmail.plus.net>
	<E548F53E-0B01-4DEF-A976-4CA0B802A014@r-project.org>
	<1339573327.2573.67.camel@netbook>
	<loom.20120613T103830-686@post.gmane.org>
Message-ID: <4FD86401.4040102@gmail.com>

On 12-06-13 4:45 AM, Matthew Dowle wrote:
> Matthew Dowle<mdowle<at>  mdowle.plus.com>  writes:
>
>>
>> On Tue, 2012-06-12 at 20:38 -0400, Simon Urbanek wrote:
>>> Something like
>>>
>>> all: $(SHLIB)
>>>          mv $(SHLIB) datatable$(SHLIB_EXT)
>>>
>>> should do the trick (resist the temptation to create a
> datatable$(SHLIB_EXT) target - it doesn't work due
>> to the makefile loading sequence, unfortunately). AFAIR you don't need to
> mess with install.libs
>> because the default is to install all shlibs in the directory.
>>>
>>> Cheers,
>>> Simon
>>
>> Huge thank you, Simon. Works perfectly. +100!
>>
>> Matthew
>
> I guess the 'mv' command works on Mac, too. For Windows I think I need to
> create pkg/src/Makevars.win with 'mv' replaced by 'rename'. Is that right?
>
> all: $(SHLIB)
>          rename $(SHLIB) datatable$(SHLIB_EXT)
>
> I could try that and submit to winbuilder and see, but asking here as well in
> case theres anything else to consider for Windows.
>

mv should be fine on Windows.  If you have a makefile, you have Rtools 
installed, and mv is in Rtools.

Duncan Murdoch



[Rd] How to change name of .so/.dll
Duncan Murdoch