aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2025-09-03 12:11:52 +0000
committerBrooks Davis <brooks@FreeBSD.org>2025-09-03 12:12:33 +0000
commit4b8eebe9754a40ab12d265adb17aafec690a29aa (patch)
tree6fcc4543946ab691aea6a48a5af513fac05dfcd1
parent9f670001410df3bea19d2d106bf5634ceb54d293 (diff)
tcpdump: don't create unused version.c
The version now comes from the PACKAGE_VERSION macro. Fixes: 0a7e5f1f02aa ("tcpdump: Update to 4.99.5") Reviewed by: jrm, emaste Differential Revision: https://reviews.freebsd.org/D52334
-rw-r--r--usr.sbin/tcpdump/tcpdump/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.sbin/tcpdump/tcpdump/Makefile b/usr.sbin/tcpdump/tcpdump/Makefile
index b06e05ac8019..21c5f9ac7fdf 100644
--- a/usr.sbin/tcpdump/tcpdump/Makefile
+++ b/usr.sbin/tcpdump/tcpdump/Makefile
@@ -186,9 +186,9 @@ SRCS= addrtoname.c \
print-unsupported.c \
print-vsock.c \
print-whois.c \
- print-zep.c \
- version.c
-CLEANFILES+= version.c ${MAN}
+ print-zep.c
+
+CLEANFILES+= ${MAN}
CFLAGS+= -I${.CURDIR} -I${TCPDUMP_DISTDIR}
CFLAGS+= -DHAVE_CONFIG_H
@@ -217,11 +217,6 @@ SRCS+= print-pflog.c \
CFLAGS+= -DHAVE_NET_PFVAR_H -DHAVE_NET_IF_PFLOG_H
.endif
-version.c: ${TCPDUMP_DISTDIR}/VERSION
- rm -f version.c ; \
- sed 's/.*/char version[] = "&";/' ${TCPDUMP_DISTDIR}/VERSION \
- > version.c
-
.include <bsd.prog.mk>
.for mp in ${MAN}