26 lines
779 B
Makefile
26 lines
779 B
Makefile
# $NetBSD: Makefile,v 1.9 2001/02/11 01:33:59 lukem Exp $
|
|
|
|
.include "../Makefile.inc"
|
|
.PATH: ${BIND_DIST_DIR}/bin/named-xfer ${BIND_DIST_DIR}/bin/named \
|
|
${BIND_DIST_DIR}/man
|
|
|
|
NAMEDOBJ!=cd ${.CURDIR}/../named && ${PRINTOBJDIR}
|
|
|
|
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
|
|
LDSTATIC?=-static
|
|
|
|
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>
|