Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/usr.bin/nvi Don't rebuild the header files ...
details: https://anonhg.NetBSD.org/src/rev/2134219ff3c7
branches: trunk
changeset: 325013:2134219ff3c7
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 30 14:52:40 2013 +0000
description:
Don't rebuild the header files all the time if they did not change
diffstat:
external/bsd/nvi/usr.bin/nvi/Makefile | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 1532bba823fe -r 2134219ff3c7 external/bsd/nvi/usr.bin/nvi/Makefile
--- a/external/bsd/nvi/usr.bin/nvi/Makefile Sat Nov 30 13:23:57 2013 +0000
+++ b/external/bsd/nvi/usr.bin/nvi/Makefile Sat Nov 30 14:52:40 2013 +0000
@@ -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 @@
_${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
Home |
Main Index |
Thread Index |
Old Index