summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-11-14 23:23:44 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-11-14 23:23:44 +0000
commit553b85fe21ff47263d144742eebe21b2fce37de6 (patch)
tree7315cdbbe94c3c0d4d22b68c7df2367fb5b22352 /usr.sbin
parent4e738c2cbeea4a581300aa44c7eef04acc610b1e (diff)
Create our own version.c instead of snurking it out of ../named/obj
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"