aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-17 13:52:56 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-17 13:52:56 +0200
commitb90bf44d37438096ca0928e08faa8799a8743023 (patch)
treed4d2b64ba4712b9ec25376c3b9ecb3edfe05000f /Makefile
parent6255220f5dd115619990f698044ffae36c3dfcf6 (diff)
Add install script and rulev0.1.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ed58a29..f256c1b 100644
--- a/Makefile
+++ b/Makefile
@@ -106,6 +106,15 @@ package-all:
GOOS=darwin GOARCH=amd64 RELEASE=1 make -f $(ROOT_SRCDIR)/Makefile package
make -f $(ROOT_SRCDIR)/Makefile clean
+.PHONY: install
+install:
+ @test -e $(LOCAL_BINDIR)/$(TARGET)$(EXT) || { echo "Please execute first: make all\n"; exit 1; }
+ export DESTDIR=$(DESTDIR) && $(ROOT_SRCDIR)/scripts/install.sh
+
+.PHONY: uninstall
+uninstall:
+ export DESTDIR=$(DESTDIR) && $(ROOT_SRCDIR)/scripts/install.sh uninstall
+
vendor: tools/glide glide.yaml
./tools/glide install --strip-vendor
@@ -122,9 +131,11 @@ tools/glide:
help:
@echo "Main supported rules:"
@echo " all (default)"
+ @echo " build"
@echo " release"
@echo " clean"
@echo " package"
+ @echo " install / uninstall"
@echo " distclean"
@echo ""
@echo "Influential make variables:"