Saturday, 31 January 2015

Re: [gccsdk] make: File '-c' not found

On 30/01/2015 14:13, WPB wrote:
> With this very simple test case of a Makefile:
>
>
> dir :
> printf "Making dir...\n"
> mkdir OBJECTS
>

You need the executable file 'printf' in your run path - check that it is.

The trouble then is with the \n. I could get it to work by just removing \n.
You don't then get a carriage return of course.
But this does work (note, single quotes, two slashes):

printf 'Making dir...\\n'

I'm not sure if variable substitution will work with that - I haven't tried.

If you try 'echo', beware of picking up the RISC OS Echo instead.

As to why \n is causing problems, I'm not sure. It looks like some weird
interaction between 'make' and 'printf'.

Duncan



_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment