bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect path and shell script error


From: Edward Welbourne
Subject: Re: Incorrect path and shell script error
Date: Fri, 8 May 2020 07:18:36 +0000

Loch Brandon (7 May 2020 20:41) wrote:
> @if not exist $(OUTPUTDIR)\$(notdir $(OBJDIR)) $(MKDIR) $(OUTPUTDIR)\$(notdir 
> $(OBJDIR))

> When running without the '@' this is the result:
> echo Verifying and building application directory structure...
> Verifying and building application directory structure...
> if not exist output mkdir output
>
> Then it hits the error.

Quoting the error message as text would be a kindness to the reader.

Not sure what's going wrong, but one thing that crosses my mind is that
\ is an escape character in make-files, so may be escaping the
$-expansion you were hoping for with $(notdir ...) - I believe the MS
command shell understands / as path separators also, so try replacing
each \ with a / in your commands and see if that helps.

        Eddy.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]