summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/named/named-xfer/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/named/named-xfer/Makefile b/usr.sbin/named/named-xfer/Makefile
index 3bcc69782dd..8e0c387bb2b 100644
--- a/usr.sbin/named/named-xfer/Makefile
+++ b/usr.sbin/named/named-xfer/Makefile
@@ -1,9 +1,8 @@
-# $OpenBSD: Makefile,v 1.5 2002/11/14 18:05:19 marc Exp $
+# $OpenBSD: Makefile,v 1.6 2002/11/14 23:23:43 millert Exp $
# $NetBSD: Makefile,v 1.2 1996/02/04 12:02:12 mrg Exp $
# from: $Id: Makefile,v 8.2 1995/12/31 23:28:01 vixie Exp
.PATH: ${.CURDIR}/../named \
- ${.CURDIR}/../named/obj \
${.CURDIR}/../man
PROG= named-xfer
@@ -13,5 +12,11 @@ MAN= named-xfer.8
BINDIR= /var/named
LDSTATIC= ${STATIC}
+version.c: Version.c ${.CURDIR}/../Makefile
+ (u=root d=`pwd` h=localhost t=`date +%c`; \
+ sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
+ -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
+ < ${.CURDIR}/../named/Version.c > version.c)
+
.include <bsd.prog.mk>
.include "../../Makefile.inc"