From a7739f8f973b1a57ee0f8a9404a7c8ed375f2197 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 9 May 2013 18:10:44 -0400 Subject: build-sys: add convinience 'make python-shell' This will launch $(PYTHON) with $LD_LIBRARY_PATH and $PYTHONPATH as ./configure-d and DESTDIR-ed. Use as: make install DESTDIR=/var/tmp/inst python-shell --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 3a196a65e7..0ac99a6889 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3826,6 +3826,10 @@ sphinx-%: $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/ $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/ +python-shell: + $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)" + $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON) + destdir-sphinx: all dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \ $(MAKE) DESTDIR="$$dir" install && \ -- cgit v1.2.3-54-g00ecf