From 1abb5792b404e06e8bcc2c64ad1e67371773b33c Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 29 Oct 2019 01:38:23 -0400 Subject: Use ETCDIR variable for install target --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f208e25..650c255 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ PREFIX = /usr/local MANDIR = ${PREFIX}/man +ETCDIR = ${PREFIX}/etc LIBRESSL_PREFIX = /usr/local CFLAGS += -std=c11 -Wall -Wextra -Wpedantic @@ -30,10 +31,10 @@ clean: rm -f tags pounce ${OBJS} install: pounce pounce.1 rc.pounce - install -d ${PREFIX}/bin ${MANDIR}/man1 ${PREFIX}/etc/rc.d + install -d ${PREFIX}/bin ${MANDIR}/man1 ${ETCDIR}/rc.d install pounce ${PREFIX}/bin install -m 644 pounce.1 ${MANDIR}/man1 - install rc.pounce ${PREFIX}/etc/rc.d/pounce + install rc.pounce ${ETCDIR}/rc.d/pounce uninstall: - rm -f ${PREFIX}/bin/pounce ${MANDIR}/man1/pounce.1 ${PREFIX}/etc/rc.d/pounce + rm -f ${PREFIX}/bin/pounce ${MANDIR}/man1/pounce.1 ${ETCDIR}/rc.d/pounce -- cgit 1.4.1