Page 1 of 1

Avoid -print0 with find in Makefiles

PostPosted: 07 Dec 2012, 20:54
by Gallaecio
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.

Re: Avoid -print0 with find in Makefiles

PostPosted: 07 Dec 2012, 23:47
by hiker
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