NetBSD/usr.sbin/bind/named-xfer/Makefile
1999-11-21 16:46:33 +00:00

25 lines
766 B
Makefile

# $NetBSD: Makefile,v 1.7 1999/11/21 16:46:33 itojun Exp $
.include "../Makefile.inc"
.PATH: ${BIND_DIST_DIR}/bin/named-xfer ${BIND_DIST_DIR}/bin/named \
${BIND_DIST_DIR}/man
NAMEDOBJ!=cd ${.CURDIR}/../named; ${MAKE} print-objdir
PROG= named-xfer
SRCS= ${PROG}.c db_glue.c ns_glue.c tmp_version.c
CPPFLAGS+= ${INCLUDE} -I${NAMEDOBJ}
LDADD= ${LIBRARY}
CLEANFILES+= tmp_version.c
MAN= ${PROG}.8
BINDIR= /usr/libexec
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile
(u=$${USER-root} d=`pwd` h=`${HOSTNAMECMD}` t=`date`; \
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
< ${BIND_DIST_DIR}/bin/named/version.c > tmp_version.c)
.include "../../Makefile.inc"
.include <bsd.prog.mk>