Module Name: src
Committed By: christos
Date: Sat Nov 30 14:52:40 UTC 2013
Modified Files:
src/external/bsd/nvi/usr.bin/nvi: Makefile
Log Message:
Don't rebuild the header files all the time if they did not change
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/nvi/usr.bin/nvi/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/nvi/usr.bin/nvi/Makefile
diff -u src/external/bsd/nvi/usr.bin/nvi/Makefile:1.3 src/external/bsd/nvi/usr.bin/nvi/Makefile:1.4
--- src/external/bsd/nvi/usr.bin/nvi/Makefile:1.3 Fri Nov 29 17:56:19 2013
+++ src/external/bsd/nvi/usr.bin/nvi/Makefile Sat Nov 30 09:52:40 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/11/29 22:56:19 christos Exp $
+# $NetBSD: Makefile,v 1.4 2013/11/30 14:52:40 christos Exp $
.include <bsd.own.mk>
@@ -82,7 +82,12 @@ CLEANFILES+=${i}_extern.h
_${i}_SRCS != echo ${DIST}/${i}/*.c ${DIST}/${i}/*.xs
${i}_extern.h: ${SRCS}
${_MKTARGET_CREATE}
- ${TOOL_SED} -n "s/^ \* PUBLIC: \(.*\)/\1/p" ${.ALLSRC:M*/$i/*} > ${.TARGET}
+ @${TOOL_SED} -n "s/^ \* PUBLIC: \(.*\)/\1/p" ${.ALLSRC:M*/$i/*} > ${.TARGET}.tmp
+ @if cmp -s ${.TARGET}.tmp ${.TARGET}; then \
+ rm -f ${.TARGET}.tmp; \
+ else \
+ mv -f ${.TARGET}.tmp ${.TARGET}; \
+ fi
.endfor
DPSRCS+=version.h