[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Help regarding custom makefile

From: Hilco Wijbenga <hilco.wijbenga_at_gmail.com>
Date: Mon, 11 Aug 2008 11:41:48 -0700

On Mon, Aug 11, 2008 at 12:39 AM, Kapil Aditani <kapil_a_at_thbs.com> wrote:
> These are enviornment varibale
> C_BLD_ROOT=/Path1/Subpath1
> D_BLD_ROOT=/Path2/SubPath1
>
> We want whenever $(C_BLD_ROOT) is encounter in makefile,
> it should take that Path from $Repos, files required are in repository.
<snip/>
> We want to compile All these files together, so we used environment
> variables.

You might want to do a little more research into using make. Using
environment variables in a makefile is brittle and unreliable. Builds
will fail and succeed depending on the individual developer's
environment. That's bad. It's better to be explicit in build files
(make or otherwise).

I highly recommend http://aegis.sourceforge.net/auug97.pdf (Recursive
Make Considered Harmful). I found it very interesting and
enlightening.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-11 20:42:20 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.