Use standard Makefile install variables

The DESTDIR is supposed to be an optional staging location,
while the prefix says where software is going to be installed.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
v0.8
Anders F Björklund 2020-11-12 21:05:17 +01:00
parent 703a774918
commit 061526a03f
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
DESTDIR=/usr/local
prefix=/usr/local
bindir=$(prefix)/bin
binaries: FORCE
hack/binaries
@ -8,8 +9,8 @@ images: FORCE
hack/images local moby/buildkit
install: FORCE
mkdir -p $(DESTDIR)/bin
install bin/* $(DESTDIR)/bin
mkdir -p $(DESTDIR)$(bindir)
install bin/* $(DESTDIR)$(bindir)
clean: FORCE
rm -rf ./bin