On 2003-02-28, Muli Ben-Yehuda wrote: > On Fri, Feb 28, 2003 at 12:43:02PM +0200, guy keren wrote: > > > > Now that I think of it, another way would be to change the build > > > structure from recursive builds to a centralized build - all > > > directories are built from the top level directory. Let's say that I > > > do want to use recrusive build, though. What trick am I missing? > > > > none. all possible tricks have problems of various sorts. btw, why are you > > so against using an environment variable? > > Consider it a thought excersize - I want to give someone a tarball of > my code, and have it work "out of the box" when he types make, > regardless of where he opens it, and which subdirectory of the > project he builds from. The "out of the box" requirement excludes > setting any env variables prior to compilation. > OK. Then have a relative path to the top in every makefile and let `make dist' in the top directory fix these pathes in all makefiles in subdirs, before creating the archives.
-- Beni Cherniavsky <[EMAIL PROTECTED]> True elegance has negative overhead so it isn't subject to tradeoffs. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
