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

Re: [PATCH] make install: convince libtool to do What You Want (tm) with mod_dav_svn

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-06-22 00:11:54 CEST

Stephen Clouse <stephenc@theiqgroup.com> writes:

> On Fri, Jun 21, 2002 at 03:41:12PM +0100, Philip Martin wrote:
> > That's a target-specific variable assignment. How portable is that?
> > It works using GNU make, but is the syntax compatible with other
> > makes?
>
> What? There are makes other than GNU? :P
>
> My other thought was a shell override like so:
>
> subversion/mod_dav_svn/mod_dav_svn.la: $(mod_dav_svn_DEPS)
> libdir=$(APACHE_LIBEXECDIR) cd subversion/mod_dav_svn etc....
>
> But then all those poor csh users are left out :) I can't think of a completely
> portable way of doing this, unfortunately.

I don't think make will run csh unless SHELL is set explictitly in the
Makefile, so we can probably rely on some sort of Bourne or POSIX
sh. So as you suggest

        var=val command

or maybe even

        (var = val; export var; command)

I don't know which is the most portable, just as I don't know if
target-specific variables are portable :-(

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 22 00:12:22 2002

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.