www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Unable to run dmd from a Makefile under MacOSX

reply Grzegorz Adam Hankiewicz <gradha titanium.sabren.com> writes:
Hi.

I'm finding trouble running dmd inside a Makefile. For some reason the 
dmd binary is never found, even though it is in my PATH and can be run 
from the commandline.

I've read the Makefile documentation but I haven't found anything about 
commands using the shell/environment. Maybe it's a bash problem? I'm 
adding the path to the dmd binary in an export command inside my 
.bash_profile.

For now I'm just modifying the makefiles to have a full path to dmd, but 
that's getting tiresome.
May 02 2009
parent Grzegorz Adam Hankiewicz <gradha titanium.sabren.com> writes:
Grzegorz Adam Hankiewicz escribió:
 Hi.
 
 I'm finding trouble running dmd inside a Makefile. For some reason the 
 dmd binary is never found, even though it is in my PATH and can be run 
 from the commandline.
 
 I've read the Makefile documentation but I haven't found anything about 
 commands using the shell/environment. Maybe it's a bash problem? I'm 
 adding the path to the dmd binary in an export command inside my 
 ..bash_profile.
 
 For now I'm just modifying the makefiles to have a full path to dmd, but 
 that's getting tiresome.
Looks like the problem was using ~. Manually expanding that to the full path makes it work inside Makefiles too.
May 03 2009