We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a167c02 commit ad3d0a1Copy full SHA for ad3d0a1
MMVII/apib11/Makefile
@@ -38,20 +38,24 @@ endif
38
SRCS:=${wildcard *.cpp}
39
40
# ============ Targets
41
-.phony: all module clean
+.phony: all module clean install uninstall
42
all: module
43
44
-clean:
+clean: uninstall
45
rm -f docstrings.h
46
rm -Rf build/ dist/ $(MODULE_NAME).egg-info/ __pycache__/
47
$(PYTHON) setup.py clean
48
- $(PIP) uninstall -y $(MODULE_NAME)
49
50
docstrings.h: ${DOC_INCLUDES} Makefile
51
pybind11-mkdoc -o $@ ${DOC_INCLUDES} ${CXXFLAGS} >/dev/null
52
53
module: docstrings.h ${SRCS}
54
CC="${CXX}" $(PYTHON) setup.py build
55
CC="${CXX}" $(PYTHON) setup.py bdist_wheel
+
56
+install: module
57
$(PIP) install --user dist/*.whl
58
59
+uninstall:
60
+ $(PIP) uninstall -y $(MODULE_NAME)
61
0 commit comments