From 80ef36ba2ead3ca57d3b9758a788c3a6dee063bf Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Mon, 31 Oct 2016 13:38:03 -0400 Subject: [PATCH] Fix install of unit file and configuration file Signed-off-by: Dan Walsh --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4775dbae..4712f8f1 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ PREFIX ?= ${DESTDIR}/usr BINDIR ?= ${PREFIX}/bin LIBEXECDIR ?= ${PREFIX}/libexec MANDIR ?= ${PREFIX}/share/man -ETCDIR ?= ${PREFIX}/etc +ETCDIR ?= ${DESTDIR}/etc GO_MD2MAN ?= $(shell which go-md2man) export GOPATH := ${CURDIR}/vendor BUILDTAGS := selinux @@ -102,7 +102,7 @@ install: install -D -m 644 ocid.conf $(ETCDIR)/ocid.conf install.systemd: - install -D -m 644 contrib/systemd/ocid.service $(PREFIX)/lib/systemd/system + install -D -m 644 contrib/systemd/ocid.service $(PREFIX)/lib/systemd/system/ocid.service uninstall: rm -f $(BINDIR)/{ocid,ocic}