Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Remove extra -c. -c has been the default behavior s...



details:   https://anonhg.NetBSD.org/src/rev/e18a643543ed
branches:  trunk
changeset: 446967:e18a643543ed
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 26 22:57:22 2018 +0000

description:
Remove extra -c. -c has been the default behavior since 2003, and
the comment why it is needed was introduced in 2001. We don't want
to duplicate -c which is set in ${COPY} because someone might want
to override that.

diffstat:

 share/mk/bsd.inc.mk  |  7 +++----
 share/mk/bsd.kinc.mk |  7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diffs (50 lines):

diff -r 8549e6456ce9 -r e18a643543ed share/mk/bsd.inc.mk
--- a/share/mk/bsd.inc.mk       Wed Dec 26 22:21:10 2018 +0000
+++ b/share/mk/bsd.inc.mk       Wed Dec 26 22:57:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.inc.mk,v 1.32 2006/03/16 18:43:34 jwise Exp $
+#      $NetBSD: bsd.inc.mk,v 1.33 2018/12/26 22:57:22 christos Exp $
 
 .include <bsd.init.mk>
 
@@ -12,13 +12,12 @@
 incinstall::   # ensure existence
 .PHONY:                incinstall
 
-# -c is forced on here, in order to preserve modtimes for "make depend"
 __incinstall: .USE
        @cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
            (${_MKSHMSG_INSTALL} ${.TARGET}; \
-            ${_MKSHECHO} "${INSTALL_FILE} -c -o ${BINOWN} -g ${BINGRP} \
+            ${_MKSHECHO} "${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
                -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}" && \
-            ${INSTALL_FILE} -c -o ${BINOWN} -g ${BINGRP} \
+            ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
                -m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
 
 .for F in ${INCS:O:u}
diff -r 8549e6456ce9 -r e18a643543ed share/mk/bsd.kinc.mk
--- a/share/mk/bsd.kinc.mk      Wed Dec 26 22:21:10 2018 +0000
+++ b/share/mk/bsd.kinc.mk      Wed Dec 26 22:57:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kinc.mk,v 1.36 2006/03/16 18:43:34 jwise Exp $
+#      $NetBSD: bsd.kinc.mk,v 1.37 2018/12/26 22:57:22 christos Exp $
 
 # Variables:
 #
@@ -39,13 +39,12 @@
                        ${.TARGET}; \
        fi
 
-# -c is forced on here, in order to preserve modtimes for "make depend"
 __incinstall: .USE
        @cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
            (${_MKSHMSG_INSTALL} ${.TARGET}; \
-            ${_MKSHECHO} "${INSTALL_FILE} -c -o ${BINOWN} -g ${BINGRP} \
+            ${_MKSHECHO} "${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
                -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}" && \
-            ${INSTALL_FILE} -c -o ${BINOWN} -g ${BINGRP} \
+            ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} \
                -m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
 
 .for F in ${INCS:O:u} ${DEPINCS:O:u}



Home | Main Index | Thread Index | Old Index