mirror of
https://github.com/Z3Prover/z3
synced 2025-11-01 12:07:51 +00:00
Added install-python/uninstall-python commands to Makefile
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
7b79fb4795
commit
39846d3527
3 changed files with 67 additions and 1 deletions
24
Makefile.in
24
Makefile.in
|
|
@ -20,6 +20,8 @@ LIBS=@LIBS@
|
|||
LDFLAGS=@LDFLAGS@ -lpthread -fopenmp
|
||||
LDFLAGS_EXTRA=
|
||||
PREFIX=@prefix@
|
||||
HAS_PYTHON=@HAS_PYTHON@
|
||||
PYTHON_PACKAGE_DIR=@PYTHON_PACKAGE_DIR@
|
||||
#########################
|
||||
|
||||
Z3=z3
|
||||
|
|
@ -464,3 +466,25 @@ uninstall:
|
|||
@rm -f $(PREFIX)/include/z3_v1.h
|
||||
@rm -f $(PREFIX)/include/z3_macros.h
|
||||
@rm -f $(PREFIX)/include/z3++.h
|
||||
|
||||
install-python: $(BIN_DIR)/lib$(Z3).so
|
||||
@if test $(HAS_PYTHON) -eq 0; then echo "Python is not available in your system."; exit 1; fi
|
||||
@echo "Installing Python bindings at $(PYTHON_PACKAGE_DIR)."
|
||||
@cp python/z3.py $(PYTHON_PACKAGE_DIR)
|
||||
@cp python/z3core.py $(PYTHON_PACKAGE_DIR)
|
||||
@cp python/z3types.py $(PYTHON_PACKAGE_DIR)
|
||||
@cp python/z3consts.py $(PYTHON_PACKAGE_DIR)
|
||||
@cp python/z3tactics.py $(PYTHON_PACKAGE_DIR)
|
||||
@cp python/z3printer.py $(PYTHON_PACKAGE_DIR)
|
||||
@cp $(BIN_DIR)/lib$(Z3).so $(PYTHON_PACKAGE_DIR)
|
||||
|
||||
uninstall-python:
|
||||
@if test $(HAS_PYTHON) -eq 0; then echo "Python is not available in your system."; exit 1; fi
|
||||
@echo "Uninstalling Python bindings from $(PYTHON_PACKAGE_DIR)."
|
||||
@rm -f $(PYTHON_PACKAGE_DIR)/z3.py
|
||||
@rm -f $(PYTHON_PACKAGE_DIR)/z3core.py
|
||||
@rm -f $(PYTHON_PACKAGE_DIR)/z3types.py
|
||||
@rm -f $(PYTHON_PACKAGE_DIR)/z3consts.py
|
||||
@rm -f $(PYTHON_PACKAGE_DIR)/z3tactics.py
|
||||
@rm -f $(PYTHON_PACKAGE_DIR)/z3printer.py
|
||||
@rm -f $(PYTHON_PACKAGE_DIR)/$(BIN_DIR)/lib$(Z3).so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue