1998-10-09 23:30:02 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 1998/10/09 19:30:02 tron Exp $
|
1998-10-05 22:01:57 +04:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../named \
|
|
|
|
${.CURDIR}/../man
|
|
|
|
|
|
|
|
WARNS= 0
|
|
|
|
PROG= named-xfer
|
|
|
|
SRCS= ${PROG}.c db_glue.c ns_glue.c tmp_version.c
|
|
|
|
CPPFLAGS+= ${INCLUDE}
|
|
|
|
LDADD= ${LIBRARY}
|
|
|
|
CLEANFILES+= tmp_version.c
|
|
|
|
MAN= ${PROG}.8
|
1998-10-08 11:41:57 +04:00
|
|
|
BINDIR= /usr/libexec
|
1998-10-05 22:01:57 +04:00
|
|
|
|
1998-10-09 23:30:02 +04:00
|
|
|
tmp_version.c: ${.CURDIR}/../named/version.c Makefile ../Makefile
|
1998-10-05 22:01:57 +04:00
|
|
|
(u=$${USER-root} d=`pwd` h=`${HOSTNAMECMD}` t=`date`; \
|
|
|
|
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
1998-10-09 23:30:02 +04:00
|
|
|
< ${.CURDIR}/../named/version.c > tmp_version.c)
|
1998-10-05 22:01:57 +04:00
|
|
|
|
|
|
|
.include "../../Makefile.inc"
|
|
|
|
.include <bsd.prog.mk>
|