diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1996-08-21 04:14:36 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1996-08-21 04:14:36 +0000 |
commit | 1cd0d327acca6a18efd103f822e6fbbc1d7a83f8 (patch) | |
tree | 05a9c0c00166f7b406bcd1bebaa200bccc712bf5 /usr.sbin/tcpdump | |
parent | 3b73be8498623e277b783f6fab17c8da7fd28727 (diff) | |
download | FreeBSD-src-1cd0d327acca6a18efd103f822e6fbbc1d7a83f8.zip FreeBSD-src-1cd0d327acca6a18efd103f822e6fbbc1d7a83f8.tar.gz |
Pickup VERSION from the tcpdump sources in contrib/tcpdump. Allows
`make world' to work again.
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/tcpslice/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/tcpslice/Makefile b/usr.sbin/tcpdump/tcpslice/Makefile index f3e593b..0475e8c 100644 --- a/usr.sbin/tcpdump/tcpslice/Makefile +++ b/usr.sbin/tcpdump/tcpslice/Makefile @@ -8,10 +8,12 @@ CLEANFILES+= version.c version.h DPADD+= ${LIBPCAP} LDADD+= -lpcap -version.c version.h: $(.CURDIR)/../tcpdump/VERSION +DISTDIR?= ${.CURDIR}/../../../contrib/tcpdump + +version.c version.h: $(DISTDIR}/VERSION rm -f version.c ; \ - sed 's/.*/char version[] = "&";/' $(.CURDIR)/../tcpdump/VERSION > version.c - set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' $(.CURDIR)/../tcpdump/VERSION` ; \ + sed 's/.*/char version[] = "&";/' ${DISTDIR}/VERSION > version.c + set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' ${DISTDIR}/VERSION` ; \ { echo '#define VERSION_MAJOR' $$1 ; \ echo '#define VERSION_MINOR' $$2 ; } > version.h |