jw-pkg/make/python-cli.mk
Jan Lindemann b2d6e6f554 Everywhere: Rename MODDIR -> JWBDIR
Rename the omnipresent MODDIR variable to JWBDIR, since that's more to the
point.

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-06-29 21:34:18 +00:00

15 lines
318 B
Makefile

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