Skip to content

Commit ad3d0a1

Browse files
committed
apib11: add install and uninstall to makefile
1 parent a167c02 commit ad3d0a1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

MMVII/apib11/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,24 @@ endif
3838
SRCS:=${wildcard *.cpp}
3939

4040
# ============ Targets
41-
.phony: all module clean
41+
.phony: all module clean install uninstall
4242
all: module
4343

44-
clean:
44+
clean: uninstall
4545
rm -f docstrings.h
4646
rm -Rf build/ dist/ $(MODULE_NAME).egg-info/ __pycache__/
4747
$(PYTHON) setup.py clean
48-
$(PIP) uninstall -y $(MODULE_NAME)
4948

5049
docstrings.h: ${DOC_INCLUDES} Makefile
5150
pybind11-mkdoc -o $@ ${DOC_INCLUDES} ${CXXFLAGS} >/dev/null
5251

5352
module: docstrings.h ${SRCS}
5453
CC="${CXX}" $(PYTHON) setup.py build
5554
CC="${CXX}" $(PYTHON) setup.py bdist_wheel
55+
56+
install: module
5657
$(PIP) install --user dist/*.whl
5758

59+
uninstall:
60+
$(PIP) uninstall -y $(MODULE_NAME)
61+

0 commit comments

Comments
 (0)