jw-pkg/make/python-cli.mk
2017-09-02 19:26:52 +00:00

15 lines
314 B
Makefile

include $(MODDIR)/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