mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
makeinfo can fail but still leave behind zero length files which cause
interesting problems because the resulting file is newer than the source and this stops 'make' from rebuilding it. Go via an intermediate file and rename to make sure this doesn't happen.
This commit is contained in:
parent
a53988f831
commit
4c987fb1a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23763
@ -1,4 +1,4 @@
|
||||
# $Id: bsd.info.mk,v 1.32 1997/03/08 23:46:53 wosch Exp $
|
||||
# $Id: bsd.info.mk,v 1.33 1997/03/12 06:24:52 peter Exp $
|
||||
#
|
||||
# The include file <bsd.info.mk> handles installing GNU (tech)info files.
|
||||
# Texinfo is a documentation system that uses a single source
|
||||
@ -83,10 +83,14 @@ ICOMPRESS_EXT?= ${COMPRESS_EXT}
|
||||
.MAIN: all
|
||||
|
||||
.SUFFIXES: ${ICOMPRESS_EXT} .info .texi .texinfo
|
||||
|
||||
.texi.info:
|
||||
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}
|
||||
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}.new
|
||||
mv -f ${.TARGET}.new ${.TARGET}
|
||||
|
||||
.texinfo.info:
|
||||
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}
|
||||
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}.new
|
||||
mv -f ${.TARGET}.new ${.TARGET}
|
||||
|
||||
.PATH: ${.CURDIR} ${SRCDIR}
|
||||
|
||||
@ -136,7 +140,8 @@ distribute: _SUBDIR
|
||||
|
||||
.if defined(SRCS)
|
||||
${INFO}.info: ${SRCS}
|
||||
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${SRCS:S/^/${SRCDIR}\//g} -o ${INFO}.info
|
||||
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${SRCS:S/^/${SRCDIR}\//g} -o ${INFO}.info.new
|
||||
mv -f ${INFO}.info.new ${INFO}.info
|
||||
.endif
|
||||
|
||||
depend: _SUBDIR
|
||||
|
Loading…
Reference in New Issue
Block a user