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

Re: subversion 1.8.11: installing perl API with --prefix

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Mon, 9 Feb 2015 10:42:02 +0000

Branko Čibej wrote:
> Julian Foad wrote:
>> Just an additional thought: is there a way to pass all the relevant options
>> at once to the subordinate 'Makefile.PL', instead of just passing this
>> one particular option? For example, GNU Make puts its flags and variables
>> defined on the command line into the environment variable 'MAKEFLAGS'
>> and a subordinate 'make' process inherits the same definitions by
>> reading them from this variable.
>
> But this is not a subordinate make process. Makefile.PL is a Perl script
> ... not confusing at all.

Ah, thanks. I realized it was a Perl script; I hadn't realized its purpose was *making* a Makefile rather than *being* a Makefile.

>  $(SWIG_PL_DIR)/native/Makefile: $(SWIG_PL_DIR)/native/Makefile.PL
> -    cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL
> +    cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL PREFIX=$(prefix)

So the OP's suggestion sounds like the right sort of fix.

(Another observation: Looking at the documentation of MakeMaker [1], I notice that as well as PREFIX, an alternative 'INSTALL_BASE' is documented as 'more like what everyone
else calls "prefix" than PREFIX is.')

- Julian

[1] http://perldoc.perl.org/ExtUtils/MakeMaker.html#INSTALL_BASE
Received on 2015-02-09 11:42:54 CET

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.