1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
26 lines
546 B
Makefile
26 lines
546 B
Makefile
# $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>
|