mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
tcpdump: don't create unused version.c
The version now comes from the PACKAGE_VERSION macro.
Fixes: 0a7e5f1f02 ("tcpdump: Update to 4.99.5")
Reviewed by: jrm, emaste
Differential Revision: https://reviews.freebsd.org/D52334
This commit is contained in:
1 parent
9f67000141
commit
4b8eebe975
1 file changed
+3
-8
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user