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
parent
703a774918
commit
061526a03f
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue