1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/usr.sbin/ndc/Makefile
1996-08-29 21:46:46 +00:00

26 lines
536 B
Makefile

# $Id$
.include "${.CURDIR}/../named/Makefile.inc"
.PATH: ${BIND_DIR}/named
.PATH: ${BIND_DIR}/man
MAN8= ndc.8
CLEANFILES+= ndc
all: ndc
realinstall:
${INSTALL} -c -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>