Skip to content

Commit f606ab4

Browse files
committed
Makefile differentiates FreeBSD and other OSes
1 parent 4a735a8 commit f606ab4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ JAIL_NET?=16
55
MYPYPATH = $(shell pwd)/.travis/mypy-stubs
66

77
deps:
8-
which pkg && pkg install -q -y libucl py36-cython rsync python36 py36-libzfs py36-sysctl || true
8+
if [ "`uname`" = "FreeBSD" ]; then pkg install -q -y libucl py36-cython rsync python36 py36-libzfs py36-sysctl; fi
99
python3.6 -m ensurepip
1010
python3.6 -m pip install -Ur requirements.txt
1111
install: deps
@@ -16,7 +16,7 @@ install: deps
1616
install -m 0755 rc.d/ioc /usr/local/etc/rc.d; \
1717
fi
1818
install-dev: deps
19-
pkg install -y gmake
19+
if [ "`uname`" = "FreeBSD" ]; then pkg install -y gmake; fi
2020
python3.6 -m pip install -Ur requirements-dev.txt
2121
python3.6 -m pip install -e .
2222
@if [ -f /usr/local/etc/init.d ]; then \
@@ -39,7 +39,7 @@ regression-test:
3939
.PHONY: docs
4040
docs:
4141
sphinx-apidoc -o docs --separate -H libiocage -A "iocage Authors" --full iocage iocage/cli iocage/tests
42-
gmake -C docs html
42+
if [ "`uname`" = "FreeBSD" ]; then gmake -C docs html; else make -C docs html; fi
4343

4444
help:
4545
@echo " install"

0 commit comments

Comments
 (0)