Removed bogus env(1) commands. make(1) uses a real shell, so

"env name=value ... cmd ..." was just a pessimized way of doing
"name=value ... cmd ...".  Note that make(1) can't optimize
either of these to an exec of env(1) or "cmd" even if the second
"..." is simple, since it can't tell that the shell metacharacter
in "name=value" is actually handled by env(1).
This commit is contained in:
Bruce Evans 2002-03-19 06:11:43 +00:00
parent 26891528d0
commit afabc4dfc2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92648
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@
# If HTML is defined, htags is also run after gtags.
MKDEPCMD?= env CC=${CC} mkdep
MKDEPCMD?= CC=${CC} mkdep
DEPENDFILE?= .depend
.if defined(SRCS)

View File

@ -109,18 +109,18 @@ DVIPS2ASCII?= dvips2ascii
-o ${.TARGET}
.texi.dvi .texinfo.dvi:
env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
${TEX} ${.IMPSRC} </dev/null
# Run again to reolve cross references.
env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
${TEX} ${.IMPSRC} </dev/null
.texinfo.latin1 .texi.latin1:
perl -npe 's/(^\s*\\input\s+texinfo\s+)/$$1\n@tex\n\\global\\hsize=120mm\n@end tex\n\n/' ${.IMPSRC} >> ${.IMPSRC:T:R}-la.texi
env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
${TEX} ${.IMPSRC:T:R}-la.texi </dev/null
# Run again to reolve cross references.
env TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
TEXINPUTS=${.CURDIR}:${SRCDIR}:$$TEXINPUTS \
${TEX} ${.IMPSRC:T:R}-la.texi </dev/null
${DVIPS} -o /dev/stdout ${.IMPSRC:T:R}-la.dvi | \
${DVIPS2ASCII} > ${.TARGET}.new