Use -o (output to file) instead of -t (print to stdout) and a redirect.

MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2014-07-19 14:26:04 +00:00
parent 0e89acf4b4
commit 8f812fec9f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268877

View File

@ -82,7 +82,7 @@ ${_S:R}.o: ${_S}
.for _LSRC in ${SRCS:M*.l:N*/*}
.for _LC in ${_LSRC:R}.c
${_LC}: ${_LSRC}
${LEX} -t ${LFLAGS} ${.ALLSRC} > ${.TARGET}
${LEX} ${LFLAGS} -o ${.TARGET} ${.ALLSRC}
.if !exists(${.OBJDIR}/${DEPENDFILE})
${_LC:R}.o: ${_LC}
.endif