delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/06/00:39:56

From: Laurent DOT CHARLES AT st DOT com
Subject: Re: bash/gmake problem
6 Nov 1997 00:39:56 -0800 :
Message-ID: <H000030d04bbbd11.cygnus.gnu-win32@MHS>
References: <199711051735 DOT RAA15601 AT zaphod DOT long DOT harlequin DOT co DOT uk>
Mime-Version: 1.0
To: jont AT harlequin DOT co DOT uk
Cc: gnu-win32 AT cygnus DOT com

     
     >> cd libsrc/somelib/src;  $(MAKE) -f somelib.mk $(ACTION)
     > cd libsrc && cd somelib && cd src && $(MAKE) -f somelib.mk $(ACTION)
     
     How'bout
     $(MAKE) --directory=libsrc/somelib/src $(ACTION)
     or with '-C' option.
     
     As long as you use GNU make
     
     --lc


______________________________ Reply Separator _________________________________
Subject: Re: bash/gmake problem
Author:  jont (jont AT harlequin DOT co DOT uk) at internet
Date:    05/11/97 18:35


John Muller writes:
 > In my makefile I have a statement which looks like: 
 > 
 >      cd libsrc/somelib/src;  $(MAKE) -f somelib.mk $(ACTION) 
 > 
 > In a dos window or mks korn shell, gmake executes these statements correctly. 
 > However, things fail when gmake is started in a bash shell.  The statement
 > cd libsrc/somelib/src only goes one level deep (ie we are in the libsrc 
 > directory and not libsrc/somlib/src).
 > 
 > Anybody have any ideas of what is going on?
     
No, but I have found the following idiom to work quite well:-
     
cd libsrc && cd somelib && cd src && $(MAKE) -f somelib.mk $(ACTION)
     
You might even find that
     
cd libsrc/somelib/src && $(MAKE) -f somelib.mk $(ACTION)
     
works.
-
For help on using this list (especially unsubscribing), send a message to 
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019