From: Zbigniew Jędrzejewski-Szmek Date: Thu, 9 May 2013 22:10:44 +0000 (-0400) Subject: build-sys: add convinience 'make python-shell' X-Git-Tag: v205~274 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=a7739f8f973b1a57ee0f8a9404a7c8ed375f2197;hp=7ecec4705c0cacb1446af0eb7a4aee66c00d058f 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 --- diff --git a/Makefile.am b/Makefile.am index 3a196a65e..0ac99a688 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 && \