summaryrefslogtreecommitdiff
path: root/wrappers/python/Makefile
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2022-02-09 00:40:38 +0100
committerStevenWdV <stevenwdv@gmail.com>2022-02-09 00:40:38 +0100
commit2aad9b6ae61337ef94b05adc377a9ad2cbaa8eb8 (patch)
tree022c006cfac7a60fd0ab8896fac3991cf34b8fce /wrappers/python/Makefile
parentb60ecf2fe5ddfe506e02093286b3931873187e91 (diff)
Add Android wrapper, remove plain Java Maven wrapper.
Fix some overrides in Makefiles.
Diffstat (limited to 'wrappers/python/Makefile')
-rw-r--r--wrappers/python/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/wrappers/python/Makefile b/wrappers/python/Makefile
index f46f06d..fd81cd9 100644
--- a/wrappers/python/Makefile
+++ b/wrappers/python/Makefile
@@ -4,17 +4,20 @@ EXPORTS_PATH ?= ../../exports
include $(EXPORTS_PATH)/common.mk
ifdef PLAT_NAME
-SETUP_ARGS += --plat-name=$(PLAT_NAME)
+override SETUP_ARGS += --plat-name=$(PLAT_NAME)
endif
# Build for current platform only
pack:
./setup.py bdist_wheel $(SETUP_ARGS) --exports-lib-path="$(EXPORTS_LIB_PATH)"
-test: .try_build_lib
+test: .try-build-lib
install "$(EXPORTS_LIB_SUBFOLDER_PATH)/$(LIB_FILE)" -Dt "eduvpncommon/lib"
python3 -m unittest test_discovery
rm eduvpncommon/lib/*
clean:
rm -rf build/ dist/ *.egg-info/ lib/*
+ifeq ($(CLEAN_ALL),1)
+ rm -rf venv/
+endif