makefile: make it compliant for ports infrastructure

This commit is contained in:
Solene Rapenne 2022-04-07 21:37:11 +02:00
parent 513852b740
commit dc5448729f
1 changed files with 2 additions and 2 deletions

View File

@ -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