Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: How to get $(HOME) in BSD4.3 Makefiles? Message-ID: <7276@mimsy.UUCP> Date: Wed, 1-Jul-87 03:53:33 EDT Article-I.D.: mimsy.7276 Posted: Wed Jul 1 03:53:33 1987 Date-Received: Thu, 2-Jul-87 02:07:36 EDT References: <19550@ucbvax.BERKELEY.EDU> Distribution: na Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 22 In article <19550@ucbvax.BERKELEY.EDU> jwm@renoir.Berkeley.EDU (Jeff Mc Carrell) writes: >... I'd like to have an incantation that is portable across these 2 >systems that will expand to my home directory. [With the omitted >definitions,] $(DEST) expands to $(HDIR)/bin expands to ${HOME}/bin >and BSD make doesn't know how to evaluate that. SunOS make works >fine because it reads all of the environment variables, so ${HOME} >is known. The trick, then, is to pass all environment variables into make, without changing make. Surprise, this is easy. Arthur Olson's script to the rescue: % cat bin/make #! /bin/csh -f exec /bin/make $*:q "`printenv`" % This does slow make noticeably on, e.g., 750s. I use it anyway. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: seismo!mimsy!chrs l