summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndc/Makefile
blob: ff5ca4d0fc76a0681388acdae91be5975d5d7e1d (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
# $FreeBSD$

.include "${.CURDIR}/../named/Makefile.inc"

.PATH:	${BIND_DIR}/named
.PATH:	${BIND_DIR}/man

MAN8=	ndc.8
CLEANFILES+= ndc

all:	ndc

realinstall:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ndc \
		${DESTDIR}${BINDIR}

ndc:	ndc.sh ndcedit.awk ${BIND_DIR}/Makefile
	sed -e "s|%PIDDIR%|${PIDDIR}|" \
	    -e "s|%INDOT%|${INDOT}|" \
	    -e "s|%PS%|${PS}|" \
	    -e "s|%DESTSBIN%|${DESTSBIN}|" \
	    -e "s|%IOT%|${IOT}|" \
	    < ${BIND_DIR}/named/ndc.sh | awk -f ${.CURDIR}/ndcedit.awk > ndc

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud