diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 14:13:20 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-16 14:13:20 +0200 |
commit | 03ea9e0e7107d59f207b3842f9fc3f74d036ac91 (patch) | |
tree | b25a65cff138b2dfec746355d101654672e96af6 /Makefile | |
parent | 53f2a0c56e9604b8ac5cff73e62fc387c4676365 (diff) |
Used standard DESTDIR variable in make install
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -25,10 +25,12 @@ ifeq ($(origin SUB_VERSION), undefined) endif endif +# for backward compatibility +DESTDIR := $(INSTALL_DIR) # Configurable variables for installation (default /usr/local/...) -ifeq ($(origin INSTALL_DIR), undefined) - INSTALL_DIR := /usr/local/bin +ifeq ($(origin DESTDIR), undefined) + DESTDIR := /usr/local/bin endif HOST_GOOS=$(shell go env GOOS) @@ -117,7 +119,7 @@ distclean: clean .PHONY: install install: all - mkdir -p $(INSTALL_DIR) && cp $(LOCAL_BINDIR)/* $(INSTALL_DIR) + mkdir -p $(DESTDIR) && cp $(LOCAL_BINDIR)/* $(DESTDIR) vendor: tools/glide glide.yaml ./tools/glide install --strip-vendor |