From dc5448729f59d3cafc0a964dcf01ca3ca5b46586 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Thu, 7 Apr 2022 21:37:11 +0200 Subject: [PATCH] makefile: make it compliant for ports infrastructure --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f699279..65c7fc4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PREFIX=/usr/local +PREFIX?=/usr/local LDFLAGS = -lm CFLAGS += -pedantic -Wall -Wextra -Wmissing-prototypes \ @@ -16,5 +16,5 @@ clean: install: obsdfreqd install -o root -g wheel -m 555 obsdfreqd ${PREFIX}/sbin/obsdfreqd - install -o root -g wheel -m 555 obsdfreqd.rc /etc/rc.d/obsdfreqd + install -o root -g wheel -m 555 obsdfreqd.rc ${DESTDIR}/etc/rc.d/obsdfreqd install -o root -g wheel -m 444 obsdfreqd.1 ${PREFIX}/man/man1/obsdfreqd.1