diff options
author | peter <peter@FreeBSD.org> | 1996-08-30 02:12:07 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-30 02:12:07 +0000 |
commit | 3f709de38ccdb0b9e54ac5c652cac186e7aa7f80 (patch) | |
tree | 3319724cb0b02106aa2d4ce62b3e8052990efbfe /lib | |
parent | 63fc84178443fce428256e82bde4c6e8e0d728bb (diff) | |
download | FreeBSD-src-3f709de38ccdb0b9e54ac5c652cac186e7aa7f80.zip FreeBSD-src-3f709de38ccdb0b9e54ac5c652cac186e7aa7f80.tar.gz |
cmp -s || install -c ==> install -C
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libmytinfo/Makefile | 13 | ||||
-rw-r--r-- | lib/libncurses/Makefile | 13 | ||||
-rw-r--r-- | lib/libscsi/Makefile | 3 | ||||
-rw-r--r-- | lib/libskey/Makefile | 5 | ||||
-rw-r--r-- | lib/libss/Makefile | 25 | ||||
-rw-r--r-- | lib/libtermcap/Makefile | 3 | ||||
-rw-r--r-- | lib/msun/Makefile | 8 | ||||
-rw-r--r-- | lib/ncurses/ncurses/Makefile | 13 |
8 files changed, 31 insertions, 52 deletions
diff --git a/lib/libmytinfo/Makefile b/lib/libmytinfo/Makefile index a5593c2..b8247c6 100644 --- a/lib/libmytinfo/Makefile +++ b/lib/libmytinfo/Makefile @@ -1,7 +1,7 @@ # Makefile for libmytinfo # Use 'make update_term_h' manually after changing internal # mytinfo structures -# $Id: Makefile,v 1.8 1994/11/16 11:54:09 ache Exp $ +# $Id: Makefile,v 1.9 1995/08/06 12:37:26 bde Exp $ LIB= mytinfo SRCS= addstr.c binorder.c buildpath.c caplist.c capsort.c compar.c\ @@ -17,15 +17,12 @@ CAPS= 1000 # ${.CURDIR}/term.h: ${.CURDIR}/term.head ${.CURDIR}/term.tail update_term_h: ${.CURDIR}/term.head ${.CURDIR}/term.tail - cat ${.CURDIR}/term.head ${.CURDIR}/term.tail > ${.CURDIR}/term.h + cat ${.CURDIR}/term.head ${.CURDIR}/term.tail > ${.CURDIR}/term.h beforeinstall: - -cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/term.h && \ - cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/nterm.h || \ - ( $(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${.CURDIR}/term.h ${DESTDIR}/usr/include; \ - rm -f ${DESTDIR}/usr/include/nterm.h; \ - ln -s term.h ${DESTDIR}/usr/include/nterm.h ) + $(INSTALL) -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/term.h \ + ${DESTDIR}/usr/include + ln -sf term.h ${DESTDIR}/usr/include/nterm.h capsort.c: mkcapsort ./mkcapsort > capsort.c diff --git a/lib/libncurses/Makefile b/lib/libncurses/Makefile index e8bb8c4..dd32bad 100644 --- a/lib/libncurses/Makefile +++ b/lib/libncurses/Makefile @@ -1,5 +1,5 @@ # Makefile for ncurses -# $Id: Makefile,v 1.16 1996/05/27 22:58:29 wosch Exp $ +# $Id: Makefile,v 1.17 1996/08/26 09:25:20 peter Exp $ LIB= ncurses SHLIB_MAJOR= 3 @@ -23,13 +23,10 @@ CLEANFILES+= lib_keyname.c keys.tries beforedepend: keys.tries beforeinstall: - @cd ${.CURDIR}; for i in unctrl.h; do \ - cmp -s $$i ${DESTDIR}/usr/include/$$i || \ - $(INSTALL) -c -m 444 -o $(BINOWN) -g $(BINGRP) $$i \ - ${DESTDIR}/usr/include; done - @cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/ncurses.h || \ - $(INSTALL) -c -m 444 -o $(BINOWN) -g $(BINGRP) curses.h \ - ${DESTDIR}/usr/include/ncurses.h + ${INSTALL} -C -m 444 -o $(BINOWN) -g $(BINGRP) ${.CURDIR}/unctrl.h \ + ${DESTDIR}/usr/include + ${INSTALL} -C -m 444 -o $(BINOWN) -g $(BINGRP) ${.CURDIR}/curses.h \ + ${DESTDIR}/usr/include/ncurses.h keys.tries: ${.CURDIR}/keys.list ${.CURDIR}/MKkeys.awk awk -f ${.CURDIR}/MKkeys.awk ${.CURDIR}/keys.list > keys.tries diff --git a/lib/libscsi/Makefile b/lib/libscsi/Makefile index b039be9..a056258 100644 --- a/lib/libscsi/Makefile +++ b/lib/libscsi/Makefile @@ -14,8 +14,7 @@ MLINKS+=scsi.3 scsireq_buff_decode.3 scsi.3 scsireq_build.3 \ scsi.3 scsi_debug_output.3 beforeinstall: - -cd ${.CURDIR}; cmp -s scsi.h ${DESTDIR}/usr/include/scsi.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 scsi.h \ + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/scsi.h \ ${DESTDIR}/usr/include diff --git a/lib/libskey/Makefile b/lib/libskey/Makefile index bdc3999..ebbac7a 100644 --- a/lib/libskey/Makefile +++ b/lib/libskey/Makefile @@ -8,8 +8,7 @@ MAN5= skey.access.5 CFLAGS+=-DPERMIT_CONSOLE -I${.CURDIR} beforeinstall: - -cd ${.CURDIR}; cmp -s skey.h ${DESTDIR}/usr/include/skey.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 skey.h \ - ${DESTDIR}/usr/include + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/skey.h \ + ${DESTDIR}/usr/include .include <bsd.lib.mk> diff --git a/lib/libss/Makefile b/lib/libss/Makefile index cebc01b..54c58e1 100644 --- a/lib/libss/Makefile +++ b/lib/libss/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.11 1996/05/07 23:19:15 wosch Exp $ +# $Id: Makefile,v 1.12 1996/06/24 04:23:28 jkh Exp $ LIB= ss SRCS= ss_err.c data.c error.c execute_cmd.c help.c invocation.c list_rqs.c \ @@ -24,21 +24,14 @@ std_rqs.c: ${.CURDIR}/std_rqs.ct -test -h std_rqs.ct && rm -f std_rqs.ct beforeinstall: - -cd ${.CURDIR}; cmp -s ss.h ${DESTDIR}/usr/include/ss/ss.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ss.h \ - ${DESTDIR}/usr/include/ss - -cd ${.CURDIR}; cmp -s copyright.h \ - ${DESTDIR}/usr/include/ss/mit-sipb-copyright.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 copyright.h \ - ${DESTDIR}/usr/include/ss/mit-sipb-copyright.h - -cd ${.OBJDIR}; \ - if [ -f ss_err.h ]; then \ - cmp -s ss_err.h ${DESTDIR}/usr/include/ss/ss_err.h || \ - ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ss_err.h \ - ${DESTDIR}/usr/include/ss; \ - else \ - true; \ - fi + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/ss.h \ + ${DESTDIR}/usr/include/ss + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/copyright.h \ + ${DESTDIR}/usr/include/ss/mit-sipb-copyright.h +.if exists(ss_err.h) + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ss_err.h \ + ${DESTDIR}/usr/include/ss +.endif .include <bsd.lib.mk> diff --git a/lib/libtermcap/Makefile b/lib/libtermcap/Makefile index a4b65f5..43974a8 100644 --- a/lib/libtermcap/Makefile +++ b/lib/libtermcap/Makefile @@ -20,8 +20,7 @@ LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a .endif beforeinstall: - -cd ${.CURDIR}; cmp -s termcap.h ${DESTDIR}/usr/include/termcap.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 termcap.h \ + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 termcap.h \ ${DESTDIR}/usr/include .include <bsd.lib.mk> diff --git a/lib/msun/Makefile b/lib/msun/Makefile index 81b2e46..eae8a37 100644 --- a/lib/msun/Makefile +++ b/lib/msun/Makefile @@ -1,5 +1,5 @@ # @(#)Makefile 5.1beta 93/09/24 -# $Id: Makefile,v 1.8 1996/02/09 00:45:39 mpp Exp $ +# $Id: Makefile,v 1.9 1996/02/09 00:48:52 mpp Exp $ # # ==================================================== # Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -139,9 +139,7 @@ MLINKS+=tanh.3 tanhf.3 # XXX we should have only one math.h, and a rule for installing .h's... beforeinstall: - @${ECHO} Installing new math.h - @(cd ${.CURDIR}/src; cmp -s math.h ${DESTDIR}/usr/include/math.h || \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 math.h \ - ${DESTDIR}/usr/include/math.h;) + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/src/math.h \ + ${DESTDIR}/usr/include/math.h .include <bsd.lib.mk> diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile index e8bb8c4..dd32bad 100644 --- a/lib/ncurses/ncurses/Makefile +++ b/lib/ncurses/ncurses/Makefile @@ -1,5 +1,5 @@ # Makefile for ncurses -# $Id: Makefile,v 1.16 1996/05/27 22:58:29 wosch Exp $ +# $Id: Makefile,v 1.17 1996/08/26 09:25:20 peter Exp $ LIB= ncurses SHLIB_MAJOR= 3 @@ -23,13 +23,10 @@ CLEANFILES+= lib_keyname.c keys.tries beforedepend: keys.tries beforeinstall: - @cd ${.CURDIR}; for i in unctrl.h; do \ - cmp -s $$i ${DESTDIR}/usr/include/$$i || \ - $(INSTALL) -c -m 444 -o $(BINOWN) -g $(BINGRP) $$i \ - ${DESTDIR}/usr/include; done - @cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/ncurses.h || \ - $(INSTALL) -c -m 444 -o $(BINOWN) -g $(BINGRP) curses.h \ - ${DESTDIR}/usr/include/ncurses.h + ${INSTALL} -C -m 444 -o $(BINOWN) -g $(BINGRP) ${.CURDIR}/unctrl.h \ + ${DESTDIR}/usr/include + ${INSTALL} -C -m 444 -o $(BINOWN) -g $(BINGRP) ${.CURDIR}/curses.h \ + ${DESTDIR}/usr/include/ncurses.h keys.tries: ${.CURDIR}/keys.list ${.CURDIR}/MKkeys.awk awk -f ${.CURDIR}/MKkeys.awk ${.CURDIR}/keys.list > keys.tries |