#350 make 3.79.1 fails to do cd ..\lib


make 3.79.1 fails to do cd ..\lib
echos the command ok, but cd says no such file ..lib
nmake did the command ok.
note: when $(avar) is a command with a ..\path
it works ok


  • Charles Evans

    Charles Evans - 2003-05-11

    Logged In: YES

    on WinXP, no shell set.

  • Charles Evans

    Charles Evans - 2003-05-12

    Logged In: YES

    cd "..\dir" works; not an easy fix.
    (A built-in-to-make 'cd' is the best & has meant no need to
    have 2 versions: cd "..\dir" && ... && cd "..\dir"
    and cd ../dir ; ... ; cd ../dir
    just 3 separate commands, 1 per line.
    AND: copy fails; easy fix - copy.bat or cp.exe
    or $(CP) with CP=cmd /c copy

  • Luke Dunstan

    Luke Dunstan - 2003-05-12
    • status: open --> pending
  • Luke Dunstan

    Luke Dunstan - 2003-05-12
    • assigned_to: nobody --> infidel
  • Luke Dunstan

    Luke Dunstan - 2003-05-12

    Logged In: YES

    Which version of "make" are you using: MSYS, Cygwin or
    MinGW? (show the output of "type -a make"). If you are using
    Cygwin or MSYS, make will invoke bash instead of cmd.exe
    unless you use the "--win32" flag. If you are using MinGW
    make, it will still invoke sh.exe if it is found on your PATH so
    you'll have to change your PATH if you want to force it to
    invoke cmd.exe/command.com. Putting a "cd" command on
    a separate line might work with the Windows shell but not
    with sh.exe because each line runs in a separate process
    (this is not a bug).

  • Charles Evans

    Charles Evans - 2003-06-01
    • status: pending --> open
  • Charles Evans

    Charles Evans - 2003-06-01

    Logged In: YES

    I am using MinGW make.
    The only way to have cd.. on its own line is for make to do it
    _internally_, not have a shell do it.
    This has the great advantage of being faster AND
    enabling one makefile to work on Linux or Win98
    (much less work for me).
    I could even port Delorie GCC or MSVC
    projects without rewriting every makefile.
    Also, a --win32 flag would really help - I could pretest
    makefiles both ways.

  • Earnie Boyd

    Earnie Boyd - 2003-06-02
    • assigned_to: infidel --> earnie
    • status: open --> closed-invalid
  • Earnie Boyd

    Earnie Boyd - 2003-06-02

    Logged In: YES

    This is a feature request not a bug. Make is operating in
    the fashion that it has been designed to do. Therefore this
    ``bug'' report is closed.



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks