|
|
@ -4,6 +4,8 @@ DIST_DIR = ./dist |
|
|
|
PYTHON_ARTIFACTS += ./.eggs |
|
|
|
PYTHON_ARTIFACTS += ./pEpACIDgen.egg-info |
|
|
|
PYTHON_ARTIFACTS += ./.pytest_cache |
|
|
|
PYTHON_ARTIFACTS += ./pEpACIDgen/__pycache__ |
|
|
|
PYTHON_ARTIFACTS += ./tests/__pycache__ |
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all build dist dist-egg dist-whl install install-user install-test venv envtest test develop clean clean-all |
|
|
@ -48,10 +50,6 @@ venv: |
|
|
|
python3 -m venv $(VENV_DIR) |
|
|
|
bash --rcfile $(VENV_DIR)/bin/activate |
|
|
|
|
|
|
|
# Tests if the current environment is able to load the pEp module
|
|
|
|
envtest: |
|
|
|
python3 -c 'import pEpACIDgen' |
|
|
|
|
|
|
|
# Test
|
|
|
|
# ====
|
|
|
|
# Use these targets only in venv created with 'make venv'
|
|
|
@ -62,19 +60,20 @@ install-test: |
|
|
|
test: |
|
|
|
pytest |
|
|
|
|
|
|
|
|
|
|
|
# Development
|
|
|
|
develop: |
|
|
|
pip install -e . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Housekeeping
|
|
|
|
# ============
|
|
|
|
clean-all: clean |
|
|
|
rm -rf $(VENV_DIR) |
|
|
|
|
|
|
|
clean: |
|
|
|
make -C examples/lib/lib_synth_shed/ clean |
|
|
|
make -C examples/lib/lib_test/ clean |
|
|
|
make -C examples/ext/synth_shed/ clean |
|
|
|
rm -rf $(BUILD_DIR) |
|
|
|
rm -rf $(DIST_DIR) |
|
|
|
rm -rf $(PYTHON_ARTIFACTS) |
|
|
|