From owner-freebsd-current Sat Jul 22 12:09:09 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id MAA00549 for current-outgoing; Sat, 22 Jul 1995 12:09:09 -0700 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id MAA00495 for ; Sat, 22 Jul 1995 12:09:03 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by who.cdrom.com (8.6.11/8.6.11) with ESMTP id KAA29476 for ; Sat, 22 Jul 1995 10:51:04 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id DAA14436 for current@freebsd.org; Sun, 23 Jul 1995 03:41:43 +1000 Date: Sun, 23 Jul 1995 03:41:43 +1000 From: Bruce Evans Message-Id: <199507221741.DAA14436@godzilla.zeta.org.au> To: current@FREEBSD.ORG Subject: ${INSTALL} ${INSTALLFLAGS} Sender: current-owner@FREEBSD.ORG Precedence: bulk Garrett has implemented a -C flag to `install' that says to avoid copying if the target compares equal with the source. We need to use this flag in all Makefiles. I think the right method is: sys.mk: INSTALL ?= install # same as now bsd.own.mk: INSTALL_COMPARE ?= -C bsd.own.mk: INSTALL_COPY ?= -c # replaces COPY bsd.own.mk: INSTALLFLAGS ?= # user options bsd.prog.mk etc: INSTALL += ${INSTALL_COMPARE} ${INSTALL_COPY} \ ${INSTALLFLAGS} # sometimes more Makefiles: ${INSTALL} [-c] ... There is little point in putting `${INSTALL} ${INSTALLFLAGS} [-c]' in all Makefiles. It mainly makes the commands longer. If different options are required then plain `install' can be used. This would ignore any special setting of INSTALL, but special settings have never really worked anyway. Makefiles have to use -c to install source files in case ${INSTALL_COPY} is set to empty. Some currently use ${COPY} in more or less the right places. I have changed 81 Makefiles to use `${INSTALL}' instead of `install'. Complain if you want anything different. Bruce