Add Makefile targets: devenv, envtest

PYADPT-81
heck 2 years ago
parent 74dcc6f7a7
commit 1cf31e4687
  1. 15
      Makefile

@ -1,5 +1,5 @@
PREFIX = /home/heck/local-default/
DEBUG = 0
DEBUG = 1
BUILD_DIR = ./build
BUILD_EXT_OPTS = --prefix=$(PREFIX)
@ -8,7 +8,7 @@ ifeq ($(DEBUG),1)
BUILD_EXT_OPTS+=--debug
endif
.PHONY: all build clean
.PHONY: all build clean devenv envtest
all: build_ext
@ -16,4 +16,13 @@ build_ext:
python3 setup.py build_ext $(BUILD_EXT_OPTS)
clean:
rm -r $(BUILD_DIR)
rm -r $(BUILD_DIR)
devenv:
LD_LIBRARY_PATH=$(PREFIX)/lib \
PYTHONPATH=`pwd`/build/lib.linux-x86_64-3.7:\
`pwd`/src \
bash -l
envtest:
python3 -c 'import pEp'
Loading…
Cancel
Save