jw-pkg/make/python-cli.mk
2018-01-02 13:12:00 +00:00

15 lines
318 B
Makefile

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