6b32ec19e9
Note: new program, "ndc", similar to gated's gdc. This provides a superset of named.reload and named.restart.
26 lines
479 B
Makefile
26 lines
479 B
Makefile
MAN8= ndc.8
|
|
CLEANFILES+=ndc
|
|
|
|
PIDDIR=/var/run
|
|
INDOT=
|
|
PS=ps
|
|
IOT=IOT
|
|
DESTSBIN=${DESTDIR}${BINDIR}
|
|
|
|
beforeinstall:
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
|
|
ndc ${DESTDIR}${BINDIR}
|
|
|
|
all: ndc
|
|
|
|
ndc: ndc.sh Makefile
|
|
sed -e "s|%DESTSBIN%|${DESTSBIN}|" \
|
|
-e "s|%INDOT%|${INDOT}|" \
|
|
-e "s|%PIDDIR%|${PIDDIR}|" \
|
|
-e "s|%PS%|${PS}|" \
|
|
-e "s|%IOT%|${IOT}|" \
|
|
< ${.CURDIR}/ndc.sh > ndc
|
|
|
|
.include "${.CURDIR}/../../../Makefile.inc"
|
|
.include <bsd.prog.mk>
|