From 35174a8766471db92528f7ba2877e7f07ea8ed52 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 19 Jan 2017 15:15:31 -0800 Subject: [PATCH] Basic BSD gmake install/uninstall. --- make-bsd.mk | 9 +++++++++ 1 file changed, 9 insertions(+) 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: