Path: utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!mailrus!iuvax!cica!sol.ctr.columbia.edu!emory!mephisto!uflorida!usfvax2!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: news.software.b Subject: Re: Peter's gripes Message-ID: <1990Feb2.131651.18711@tct.uucp> Date: 2 Feb 90 13:16:51 GMT References: <519@smcnet.UUCP> <_E7166Cxds13@ficc.uu.net> <64T#Y$@rpi.edu> <7V716AAxds13@ficc.uu.net> <1990Jan29.232907.12180@utzoo.uucp> <1990Jan30.041541.23578@elroy.jpl.nasa.gov> <1990Jan30.185214.8197@utzoo.uucp> <1990Fe Organization: ComDev/TCT, Sarasota, FL Lines: 24 According to woods@robohack.UUCP (Greg A. Woods): >I've re-written the makefiles for 13-Nov-1989 C News to use include to >a file containing most of the local configuration information (and >use a new rule to create runnable versions of the now re-named .sh >files by using a modified subst.) There's an easier solution, which is also portable. It depends on the feature of all versions of make that multiple files can be read with the "-f" option. In each directory with a Makefile, rename Makefile to makefile.here, and create a tiny shell script called "mk" that looks like this: : mk make -f ../conf/makefile.std -f makefile.here ${1+"$@"} Then instead of typing "make all", type "mk all". (The "make" command won't work, anyway, since "Makefile" doesn't exist.) Presto, all makefiles have "include" without "include". And best of all, I won't charge you royalties. :-) -- Chip Salzenberg at ComDev/TCT , "The Usenet, in a very real sense, does not exist."