digitalmars.D.learn - Unable to run dmd from a Makefile under MacOSX
- Grzegorz Adam Hankiewicz (10/10) May 02 2009 Hi.
- Grzegorz Adam Hankiewicz (3/16) May 03 2009 Looks like the problem was using ~. Manually expanding that to the full
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
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