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

Re: [PATCH] DESTDIR support for python swig targets

From: <cmpilato_at_collab.net>
Date: 2002-10-31 19:44:06 CET

"Craig Peterein" <craig@peterein.org> writes:

> Pretty self-explainatory.

Isn't $(prefix) typically an absolute path like "/usr" or "/usr/local"?

And actually, isn't $(prefix) just plain wrong in this instance? I
mean, $(prefix) is the install location for Subversion itself, which
might be completely different than where I want my Python modules
dumped.

What's the difference between DESTDIR and prefix? Perhaps we need
only DESTDIR (and lose the prefix) here?

> * Makefile.in
> (swig-py-ext): Support DESTDIR for compiling.
> (install-swig-py-ext): Support DESTDIR for installation.
>
> Index: Makefile.in
> ===================================================================
> --- Makefile.in (revision 3584)
> +++ Makefile.in (working copy)
> @@ -264,14 +264,14 @@
> -I$(SWIG_SRC_DIR) \
> -I$(abs_srcdir)/subversion/include $(SVN_APR_INCLUDES) \
> -S$(SWIG_SRC_DIR) \
> - -L$(prefix)/lib -L$(SVN_APR_PREFIX)/lib \
> + -L$(DESTDIR)$(prefix)/lib -L$(SVN_APR_PREFIX)/lib \
> build --build-base=$(SWIG_BUILD_DIR)/python/build)
>
> install-swig-py-ext:
> (cd $(SWIG_BUILD_DIR)/python; \
> $(PYTHON) $(SWIG_SRC_DIR)/python/setup.py \
> -S$(SWIG_SRC_DIR) \
> - install --prefix $(prefix))
> + install --prefix $(DESTDIR)$(prefix))
>
> ### Build a tarball.
> dist:

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 31 19:48:09 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.