summaryrefslogtreecommitdiffstats
path: root/usr.sbin/named/tools/ndc/Makefile
blob: 1283121f78cad5cddff0804d5a85f02e988862ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
MAN8=	ndc.8
CLEANFILES+=ndc

PIDDIR=/var/run
INDOT=
PS=ps
IOT=ABRT
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>
OpenPOWER on IntegriCloud