From fe9756d3ab2e4a1efb98418e2a90e7ec7763eab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 19 Mar 2017 12:58:41 -0400 Subject: Makefile: add convenience "shell" target to start python shell --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b34f251..678f412 100644 --- a/Makefile +++ b/Makefile @@ -70,4 +70,8 @@ upload: dist/systemd-python-$(VERSION).tar.gz dist/systemd-python-$(VERSION).tar TAGS: $(shell git ls-files systemd/*.[ch]) $(ETAGS) $+ -.PHONY: build install dist sign upload clean distclean TAGS doc doc-sync +shell: +# we change the directory because python insists on adding $CWD to path + (cd $(builddir) && $(PYTHON)) + +.PHONY: build install dist sign upload clean distclean TAGS doc doc-sync shell -- cgit v1.2.1