home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!pki-nbg!pki-nbg.philips.de!ln_smr
- From: ln_smr@pki-nbg.philips.de (Stephen Riehm)
- Newsgroups: comp.unix.shell
- Subject: Re: Problem with sh-commands from a Makefile
- Message-ID: <ln_smr.727608449@pki-nbg.philips.de>
- Date: 21 Jan 93 09:27:29 GMT
- References: <1993Jan20.211940.18612@odin.diku.dk>
- Sender: news@pki-nbg.philips.de
- Reply-To: ln_smr@pki-nbg.philips.de
- Lines: 34
-
- turin@diku.dk (S|ren Turin) writes:
-
- >Hi netters.
-
- >all :
- > (for dir in $(DIRS) ; do cd ${dir} ; make VARS=$(VARS) ; done)
-
- >sh), i assume that i am missing something obvious. But what? Having
- >read man-pages for both `sh' and `make', the solution still eludes me.
-
- almost obvious...
-
- >I'd appreciate e-mail replys (to turin@freja.diku.dk) but will of
- >course read comp.unix.shell to see if anything comes up.
-
- good, this is a common problem so I'm posting, at least you read the
- man pages (or at least you SAY you read the manpages.)
-
- To access shell variables like $dir, you need to use $$dir from within
- Makefiles. This is because Make expands $ first, and $$ expands to $
- for the shell, so the shell would then see $dir (or ${dir} as you have
- it)
-
- catchya
-
- --------------------------------------------------------------------
- Stephen Riehm Configuration Management _-_|\
- ln_smr@pki-nbg.philips.de Philips Kommunikations Industrie / \
- Work: +49 911 526 2975 Nu"rnberg, Germany \_.-.!/
- Fax: +49 911 526 3678 "I was there, now I am here!" v
- "My company speaks another language, I CAN'T speak on its behalf"
- PS: You may think I am joking, I can't speak the language that well so
- PLEASE DON'T REPLY IN GERMAN!
- - thanks -
-