On 2008-05-29 16:50Z, mangetsu wrote:
> 
> subst K: D:\wibble\wobble
> cd /D K:
> Z:\tools\program.exe
> 
> 'cd /D K:' executes without errors, but the next line,
> 'z:\tools\program.exe' is still called from the directory where the makefile
> is located.

Each command in a makefile is executed in its own shell.
To execute three subcommands in the same shell, write
them all as a single command. For instance, if your shell
uses ';' as a subcommand separator, you might write

        subst K: D:\wibble\wobble; \
        cd /D K:; \
        Z:\tools\program.exe


_______________________________________________
Help-make mailing list
Help-make@gnu.org
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to