diff --git a/make-bsd.mk b/make-bsd.mk index 7a2399085..dcb27f540 100644 --- a/make-bsd.mk +++ b/make-bsd.mk @@ -72,4 +72,13 @@ clean: debug: FORCE make -j 4 ZT_DEBUG=1 +install: one + rm -f /usr/local/sbin/zerotier-one + cp zerotier-one /usr/local/sbin + ln -sf /usr/local/sbin/zerotier-one /usr/local/sbin/zerotier-cli + ln -sf /usr/local/sbin/zerotier-one /usr/local/bin/zerotier-idtool + +uninstall: FORCE + rm -rf /usr/local/sbin/zerotier-one /usr/local/sbin/zerotier-cli /usr/local/bin/zerotier-idtool /var/db/zerotier-one/zerotier-one.port /var/db/zerotier-one/zerotier-one.pid /var/db/zerotier-one/iddb.d + FORCE: