jw-pkg/make/python-cli.mk

15 lines
311 B
Makefile
Raw Normal View History

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