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

Re: build.conf target dependency on mkdir-init?

From: Russell Yanofsky <rey4_at_columbia.edu>
Date: 2003-09-23 21:41:22 CEST

Daniel Rall wrote:
> Russell Yanofsky wrote:
>> Does "add-deps = mkdir-init" do what you need?
>
> I've tried both this and nonlibs. When using add-deps with either the
> libsvn_swig_java or swig_client config sections, the dependency is
> added too late in sequence.
> ...
> Any ideas as to how the mkdir-init dependency can be added earlier in
> the dependency sequence?

You could modify gen-make.py to put add-deps dependencies before normal
dependencies.
The code currently reads:

      self.ofile.write(
        '%s_DEPS = %s %s\n'
        '%s_OBJECTS = %s\n'
        '%s: $(%s_DEPS)\n'
        '\tcd %s && %s -o %s $(%s_OBJECTS) %s $(LIBS)\n\n'
        % (targ_varname, string.join(objects + deps), target_ob.add_deps,
           targ_varname, objnames,
           target_ob.filename, targ_varname,
           path, target_ob.link_cmd, os.path.basename(target_ob.filename),
           targ_varname, string.join(libs))
        )

so all you'd need to do is switch the second and third strings.

- Russ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 23 21:42:21 2003

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

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