Fixed missing dependency on version.c.

Fixed some style bugs ($@ is not recommended ...).
This commit is contained in:
Bruce Evans 1997-12-18 15:22:12 +00:00
parent c6d8090e2c
commit c26f14e2b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31843

View File

@ -1,4 +1,4 @@
# $Id$
# $Id: Makefile,v 1.7 1997/02/22 15:45:15 peter Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -11,15 +11,16 @@ CLEANFILES+= cvsbug ver
.SUFFIXES: .sh
all: cvsbug
all: cvsbug
.sh:
echo > ver cvs-`sed < ${CVSDIR}/src/version.c \
ver: version.c
echo > ${.TARGET} cvs-`sed < ${.ALLSRC} \
-e '/version_string/!d' \
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
-e q`
sed -e "s,xVERSIONx,`cat ver`,g" $> > $@
.sh: ver
sed -e "s,xVERSIONx,`cat ver`,g" ${.IMPSRC} > ${.TARGET}
beforeinstall:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \