diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-10-17 13:52:56 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-10-17 13:52:56 +0200 |
commit | b90bf44d37438096ca0928e08faa8799a8743023 (patch) | |
tree | d4d2b64ba4712b9ec25376c3b9ecb3edfe05000f /Makefile | |
parent | 6255220f5dd115619990f698044ffae36c3dfcf6 (diff) |
Add install script and rulev0.1.1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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:" |