summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-05-04 17:43:46 +0000
committerbde <bde@FreeBSD.org>1998-05-04 17:43:46 +0000
commit9c5d362f0a0fc1839de3360464285035b3a961b4 (patch)
tree5b974880611bc7a35d6df1a498de7b280ea857e9 /share
parent65fbc3a74de21349fe64348f2de4d095b0b99372 (diff)
downloadFreeBSD-src-9c5d362f0a0fc1839de3360464285035b3a961b4.zip
FreeBSD-src-9c5d362f0a0fc1839de3360464285035b3a961b4.tar.gz
Fudge local variables better in the yacc rules so that multiple yacc
sources are handled properly.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.prog.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 4db65e0..1e0a91a 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -1,5 +1,5 @@
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.prog.mk,v 1.67 1998/03/23 14:58:27 eivind Exp $
+# $Id: bsd.prog.mk,v 1.68 1998/05/04 13:54:41 bde Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -30,16 +30,17 @@ LDFLAGS+= -static
CLEANFILES?=
.for _LSRC in ${SRCS:M*.l}
-_LC:= ${_LSRC:S/.l/.c/}
+.for _LC in ${_LSRC:S/.l/.c/}
${_LC}: ${_LSRC}
${LEX} -t ${LFLAGS} ${.ALLSRC} > ${.TARGET}
SRCS:= ${SRCS:S/${_LSRC}/${_LC}/}
CLEANFILES:= ${CLEANFILES} ${_LC}
.endfor
+.endfor
.for _YSRC in ${SRCS:M*.y}
-_YC:= ${_YSRC:S/.y/.c/}
-_YH:= ${_YSRC:S/.y/.h/}
+.for _YC in ${_YSRC:S/.y/.c/}
+.for _YH in ${_YSRC:S/.y/.h/}
.ORDER: ${_YC} ${_YH}
${_YC} ${_YH}: ${_YSRC}
${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC}
@@ -52,6 +53,8 @@ SRCS:= ${SRCS} y.tab.h
CLEANFILES:= ${CLEANFILES} ${_YH} y.tab.h
.endif
.endfor
+.endfor
+.endfor
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
OpenPOWER on IntegriCloud