jw-pkg/make/python-cli.mk
Jan Lindemann 31d11febd8 python-cli.mk, topdir.mk: Python2 -> $(PYTHON)
Signed-off-by: Jan Lindemann <jan@janware.com>
2019-07-06 14:39:33 +00:00

15 lines
320 B
Makefile

include $(JWBDIR)/make/defs.mk
EXE ?= $(shell $(PWD)).py
EXE_PATH ?= ./$(EXE)
all:
install:
clean:
distclean:
run:
$(PYTHON) -m $(shell echo $(patsubst %.py,%,$(EXE)) | sed 's%^\./%%; s%/%.%g') $(EXE_ARGS)
pyc.clean:
find . -name '*.pyc' -print0 | xargs -r -0 $(RM) -f