forked from iocage/iocage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (21 loc) · 776 Bytes
/
Makefile
File metadata and controls
22 lines (21 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ZPOOL=""
SERVER=""
SRC_BASE?="/usr/src"
install:
echo -e "import os\ntry:\n if not os.listdir('$(SRC_BASE)'): exit('$(SRC_BASE) must be populated!')\nexcept FileNotFoundError:\n exit('$(SRC_BASE) must be populated!')" | python3.6
test -d .git && git pull || true
test -d .git && git submodule init py-libzfs && git submodule update py-libzfs || true
python3.6 -m ensurepip
export FREEBSD_SRC=$(SRC_BASE) && cd py-libzfs && python3.6 setup.py build && python3.6 setup.py install
pip-3.6 install -U .
uninstall:
pip-3.6 uninstall -y iocage
test:
pytest --zpool $(ZPOOL) --server $(SERVER)
help:
@echo " install"
@echo " Installs iocage"
@echo " uninstall"
@echo " Removes iocage."
@echo " test"
@echo " Run unit tests with pytest"