[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: switching current working directory inside a makefile
From: |
Stephan Beal |
Subject: |
Re: switching current working directory inside a makefile |
Date: |
Thu, 29 May 2008 19:13:57 +0200 |
On Thu, May 29, 2008 at 6:50 PM, mangetsu <address@hidden> 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.
Hi!
You need to read up on make's rules for multiple commands. In brief,
you need to change the commands to a single virtual line. On a unix
machine that would be done like this:
subst K: D:... ; \
cd /D K: ; \
Z:\\tools\\program.exe
Note the semicolons and backslashes at the end of each line. i have NO
idea if the windows shell supports the semicolon as a separator,
though.
--
----- stephan beal
http://wanderinghorse.net/home/stephan/