home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / shell / 5472 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1008 b 

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
  2. From: davidsen@ariel.crd.GE.COM (william E Davidsen)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Problem with sh-commands from a Makefile
  5. Message-ID: <1993Jan22.230403.28166@crd.ge.com>
  6. Date: 22 Jan 93 23:04:03 GMT
  7. References: <1993Jan20.211940.18612@odin.diku.dk>
  8. Sender: usenet@crd.ge.com (Required for NNTP)
  9. Reply-To: davidsen@crd.ge.com (bill davidsen)
  10. Organization: GE Corporate R&D Center, Schenectady NY
  11. Lines: 12
  12. Nntp-Posting-Host: ariel.crd.ge.com
  13.  
  14. In article <1993Jan20.211940.18612@odin.diku.dk>, turin@diku.dk (S|ren Turin) writes:
  15.  
  16. | all    :
  17. |     (for dir in $(DIRS) ; do cd ${dir} ; make VARS=$(VARS) ; done)
  18.  
  19.  
  20. I think two things here, first you probably need $${dir} to delay
  21. expansion, and second you want the () arond the cd, resulting in:
  22.   for dir in $(DIRS) ; do (cd $${dir} ; make VARS=$(VARS)) ; done
  23. -- 
  24. bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
  25.     Keyboard controller has been disabled, press F1 to continue.
  26.