diff options
author | peter <peter@FreeBSD.org> | 2001-08-10 10:29:04 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-08-10 10:29:04 +0000 |
commit | 04819cf85d2a203e6a84570fffb38398acb8dde0 (patch) | |
tree | 807581549bef718e6b95705c3f3c9d5fcfd26b69 /gnu/usr.bin/cvs | |
parent | 3d7368c400d9f798181a1f42349bc1d897c1b12c (diff) | |
download | FreeBSD-src-04819cf85d2a203e6a84570fffb38398acb8dde0.zip FreeBSD-src-04819cf85d2a203e6a84570fffb38398acb8dde0.tar.gz |
Generate version.c on the fly rather than using a generated file.
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r-- | gnu/usr.bin/cvs/cvs/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/cvs/Makefile b/gnu/usr.bin/cvs/cvs/Makefile index 06015ae..1d62974 100644 --- a/gnu/usr.bin/cvs/cvs/Makefile +++ b/gnu/usr.bin/cvs/cvs/Makefile @@ -7,6 +7,7 @@ MAINTAINER= peter@FreeBSD.org .PATH: ${CVSDIR}/src .PATH: ${CVSDIR}/lib .PATH: ${CVSDIR}/man +.PATH: ${CVSDIR} PROG= cvs MAN= cvs.1 cvs.5 @@ -39,6 +40,17 @@ DISTRIBUTION= krb4 CFLAGS+= -DENCRYPTION .endif +CLEANFILES+= version.c ver + +ver: configure + echo > ${.TARGET} `sed < ${.ALLSRC} \ + -e '/^VERSION=/!d' \ + -e 's/.*=\(.*\)/\1/' \ + -e q` + +version.c: ver version.c.in + sed -e "s,@VERSION@,`cat ver`,g" ${CVSDIR}/src/version.c.in > ${.TARGET} + # # Regression test support # |