makefile: make it compliant for ports infrastructure
This commit is contained in:
parent
513852b740
commit
dc5448729f
4
Makefile
4
Makefile
|
@ -1,4 +1,4 @@
|
||||||
PREFIX=/usr/local
|
PREFIX?=/usr/local
|
||||||
LDFLAGS = -lm
|
LDFLAGS = -lm
|
||||||
|
|
||||||
CFLAGS += -pedantic -Wall -Wextra -Wmissing-prototypes \
|
CFLAGS += -pedantic -Wall -Wextra -Wmissing-prototypes \
|
||||||
|
@ -16,5 +16,5 @@ clean:
|
||||||
|
|
||||||
install: obsdfreqd
|
install: obsdfreqd
|
||||||
install -o root -g wheel -m 555 obsdfreqd ${PREFIX}/sbin/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
|
install -o root -g wheel -m 444 obsdfreqd.1 ${PREFIX}/man/man1/obsdfreqd.1
|
||||||
|
|
Reference in New Issue