Date: Thu, 12 Nov 1998 06:49:39 -0500 (EST) From: John Baldwin <jobaldwi@vt.edu> To: Gary Kline <kline@tao.thought.org> Cc: hackers@FreeBSD.ORG, (David Holland) <dholland@cs.toronto.edu> Subject: Re: bsd make to gnu make conversion, anyone?? Message-ID: <XFMail.981112064939.jobaldwi@vt.edu> In-Reply-To: <199811120641.WAA04442@tao.thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- On 12-Nov-98 Gary Kline wrote: > Can't. We're doing the entire BSD built using > gmake. .... > > Is there a cleaner way using /bin/sh commands > within gmake? Something like > > for $${lang} in $${LANGS} > do > .... > done > > thanks for your input, > > gary I'm using the following for loop in a makefile that works fine with both pmake and gmake: SUBDIRS = lib scripts support all clean cleanclean install: @for dir in $(SUBDIRS) ;\ do \ (cd $$dir ; echo "making $@ in $(CURRENT_DIR)/$$dir..." ; $(MAKE) $(MFLAGS) $@ ) ;\ done Hopefully that'll help. The only thing is that you need a semicolon before the do and after every statement. Also, it wants a for loop to all be on one line (?) so that you have to use \'s to make it concatenate the various lines. The ampersand on the for is to prevent the command from being echoed, btw. - --- John Baldwin <jobaldwi@vt.edu> -- http://members.freedomnet.com/~jbaldwin/ PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc Lawyer (n) - one skilled in the circumvention of the law. -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQB1AwUBNkrKEYjYza302vYpAQHw1AL+Lwulc7TRmnqEFUpVuVhzl2n0c/Xt+v8b XMT0aQz3At3fG97rWz2ACHl4JFnD7Nf+fkxfZrChu9yfgiPnJxhAzwoP7EqKVngf t+MYK0FrIH/RdcdsYU5J/6RLYn4x8vLJ =jgKw -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.981112064939.jobaldwi>