From 534d7a8ee48438e327ff89c8b5d44cbafa7e24b1 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Mon, 28 Mar 2016 23:25:22 +1100 Subject: [PATCH] Makefile: install to /usr/local/sbin Since runC requires root in order to run, it makes more sense to put it in /usr/local/sbin (which is traditionally for root-only utilities). This also fixes the section number mismatch (man8 is usually for administrative utilities in /usr/local/sbin). Signed-off-by: Aleksa Sarai --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 405ff29d..fdb32e80 100644 --- a/Makefile +++ b/Makefile @@ -37,17 +37,17 @@ test: runctestimage localtest: all go test -tags "$(BUILDTAGS)" ${TESTFLAGS} -v ./... -dbuild: runctestimage +dbuild: runctestimage docker build -t $(RUNC_IMAGE) . docker create --name=$(RUNC_INSTANCE) $(RUNC_IMAGE) docker cp $(RUNC_INSTANCE):$(RUNC_BUILD_PATH) . docker rm $(RUNC_INSTANCE) install: - cp runc /usr/local/bin/runc + install -D -m0755 runc /usr/local/sbin/runc uninstall: - rm -f /usr/local/bin/runc + rm -f /usr/local/sbin/runc clean: rm -f runc