Avoid -print0 with find in Makefiles

Avoid -print0 with find in Makefiles

Postby Gallaecio » 07 Dec 2012, 20:54

Hi,

I’ve just tried to build the latest version (SVN) of STK from source, and this is what the installed tracks folder looked like:

{l Code}: {l Select All Code}
[gallaecio@afonsox tracks]$ ls *
hacienda:
License.txt  light.png  Plane.049.b3d  track.xml  well.O.jpg

jungle:
amazon_jungle.music  statue.JPG

mines:
Music_license.rtf

scotland:
sheep.ogg


Only the first item of the ones returned by the find statements here was being installed.

I have no idea why it is not working here, but I’m running Chakra, a half-rolling distro (i.e. pretty up-to-date), so it worries me that the reason for the Makefile not to work is some change in the way the underlying make software works.

I think it would be safer (definitely the fix for me) to rename files with spaces, replacing those spaces by _ or -, and use the previous revision of the Makefile.

Anyway, if someone else knows why this might be happening, I’m all ears.
Gallaecio
 
Posts: 63
Joined: 14 Jan 2010, 20:23

Re: Avoid -print0 with find in Makefiles

Postby hiker » 07 Dec 2012, 23:47

Could you please use cmake, as described in the wiki? The autotools way is not really supported by us anymore.

[...]
I think it would be safer (definitely the fix for me) to rename files with spaces, replacing those spaces by _ or -

I actually agree with that, I only noticed a few days ago that we have texture names with spaces.

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Who is online

Users browsing this forum: No registered users and 1 guest