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