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

closed-invalid
None
2003-06-02
2003-05-11
No

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

Discussion

  • Charles Evans

    Charles Evans - 2003-05-11

    Logged In: YES
    user_id=436876

    on WinXP, no shell set.

     
  • Charles Evans

    Charles Evans - 2003-05-12

    Logged In: YES
    user_id=436876

    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
    user_id=30442

    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
    user_id=436876

    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
    user_id=15438

    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.

    Earnie.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks