Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #102 from jcvenegas/destdir
Browse files Browse the repository at this point in the history
Makefile: Add DESTDIR variable support.
  • Loading branch information
bergwolf committed Aug 13, 2018
2 parents 1796218 + 494d0d8 commit 6f209b7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
# SPDX-License-Identifier: Apache-2.0
#

PREFIX := /usr
LIBEXECDIR := $(PREFIX)/libexec
DESTDIR :=
PREFIX := usr
LIBEXECDIR := libexec
PROJECT := kata-containers
# Override will ignore PREFIX, LIBEXECDIR and PROJECT
INSTALLDIR := /$(PREFIX)/$(LIBEXECDIR)/$(PROJECT)

TARGET = kata-proxy
SOURCES := $(shell find . 2>&1 | grep -E '.*\.go$$')
Expand All @@ -26,7 +30,7 @@ clean:
rm -f $(TARGET)

install:
install -D $(TARGET) $(LIBEXECDIR)/kata-containers/$(TARGET)
install -D $(TARGET) $(DESTDIR)/$(INSTALLDIR)/$(TARGET)

check: check-go-static

Expand Down

0 comments on commit 6f209b7

Please sign in to comment.