[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: Kapil Aditani <kapil_a_at_thbs.com>
Date: Mon, 11 Aug 2008 13:09:20 +0530

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.

When I give
svn list $Repos
It produces the following output:-
Path1
Path2

svn list $Repos/Path1/SubPath1
A.c
C.c
E.c

svn list $Repos/Path2/SubPath1
B.c
D.c
F.c

We want to compile All these files together, so we used environment
variables.

Regards,
Kapil Aditani

----- Original Message -----
From: "Ryan Schmidt" <subversion-2008c_at_ryandesign.com>
To: "Kapil Aditani" <kapil_a_at_thbs.com>
Cc: <users_at_subversion.tigris.org>
Sent: Monday, August 11, 2008 12:40 PM
Subject: Re: Help regarding custom makefile

> On Aug 11, 2008, at 01:34, Kapil Aditani wrote:
>
>> Ryan Schmidt wrote:
>>
>>> On Aug 10, 2008, at 23:41, Kapil Aditani wrote:
>>>
>>>> I am new to SVN and have installed it few days back only. I want
>>>> to use custom make file which uses some PATH variables to be present
>>>> in environment. Before this I was using cvs whose directory structure
>>>> was directly visible. Can you suggest me how to set these environment
>>>> variable so that my custom makefile should be able toread from svn
>>>> repository.
>>>
>>> If you want to see the structure of what's in a repository at $REPO,
>>> you would do something like
>>>
>>> svn list $REPO
>>>
>>> If that wasn't your question, please tell us more about what exactly
>>> you're trying to accomplish.
>>>
>>> Be sure to read the book. It should answer most of the beginning
>>> questions you may have.
>>>
>>> http://svnbook.org/
>>>
>>> There's even an appendix at the end for CVS users which you may find
>>> valuable.
>>
>> I have Makefile which contains the list of files to be compiled. As
>> files are stored in different structures, we have specified envionment
>> variable to look for the file.
>> for e.g. Make file contains:
>> # objects to link with
>> SERVICE_OBJS = \
>> $(C_BLD_ROOT)/src/interfaces/fileA.o \
>> $(D_BLD_ROOT)/src/interfaces/fileB.o \
>>
>> These $(C_BLD_ROOT) & $(D_BLD_ROOT) are present in the environment
>> variables., such
>> C_BLD_ROOT=/Path1/Subpath1
>> D_BLD_ROOT=/Path2/SubPath1
>>
>> With the help of svn list command we are abvle to list the object,
>> but we are not able to understand how to use that ffor environment
>> variables?
>
> I'm having trouble understanding the question. What you do with your
> Makefiles and environment variables is up to you and outside the scope of
> what Subversion (and, as far as I understand, CVS) does (though I haven't
> used CVS).
>
> What environment variable would you like to have set to what value, and
> in what way do you want Subversion to influence it? In what way did CVS
> influence it in your previous setup?
>
>

---------------------------------------------------------------------
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 19:52:01 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.