Don't rebuild the header files all the time if they did not change
This commit is contained in:
parent
b3ef5c8ff0
commit
0c38cb8432
9
external/bsd/nvi/usr.bin/nvi/Makefile
vendored
9
external/bsd/nvi/usr.bin/nvi/Makefile
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user