Skip to content

Commit fe9756d

Browse files
committed
Makefile: add convenience "shell" target to start python shell
1 parent 3f9386a commit fe9756d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,8 @@ upload: dist/systemd-python-$(VERSION).tar.gz dist/systemd-python-$(VERSION).tar
7070
TAGS: $(shell git ls-files systemd/*.[ch])
7171
$(ETAGS) $+
7272

73-
.PHONY: build install dist sign upload clean distclean TAGS doc doc-sync
73+
shell:
74+
# we change the directory because python insists on adding $CWD to path
75+
(cd $(builddir) && $(PYTHON))
76+
77+
.PHONY: build install dist sign upload clean distclean TAGS doc doc-sync shell

0 commit comments

Comments
 (0)