From owner-freebsd-hackers Mon May 15 14:54:33 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA17619 for hackers-outgoing; Mon, 15 May 1995 14:54:33 -0700 Received: from haywire.DIALix.COM (peter@haywire.DIALix.COM [192.203.228.65]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id OAA17613 for ; Mon, 15 May 1995 14:54:28 -0700 Received: (from peter@localhost) by haywire.DIALix.COM (8.6.12/8.6.12/DIALix) id FAA21523; Tue, 16 May 1995 05:54:23 +0800 Date: Tue, 16 May 1995 05:54:21 +0800 (WST) From: Peter Wemm To: hackers@FreeBSD.org Subject: Some makefile patches to stop the !#^%!& include files being touched Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk These were done from a very recent -current.. I got sick of the include files being touched, causing make to rebuild the entire system again. Most of the makefiles were fixed, but these two slipped through: src/lib/csu/i386/Makefile: (stops being touched) *** Makefile.dist Thu May 11 20:06:38 1995 --- Makefile Thu May 11 20:12:23 1995 *************** *** 26,33 **** install: maninstall install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ ${DESTDIR}/usr/lib ! install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/dlfcn.h \ ! ${DESTDIR}/usr/include depend lint tags: --- 26,35 ---- install: maninstall install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ ${DESTDIR}/usr/lib ! @${ECHO} Installing dlfcn.h header... ! @cmp -s ${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include/dlfcn.h || \ ! install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ ! ${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include depend lint tags: And this one stops the rpc stuff being touched, causing the getpw* routines in libc to be rebuilt, hence causing just about everything to be rebuilt. src/include/rpcsvc: *** Makefile.dist Thu May 11 19:57:25 1995 --- Makefile Thu May 11 20:05:18 1995 *************** *** 17,32 **** all: ${HDRS} install: all ! @${ECHO} "Creating RPC service headers directory" ! @/bin/rm -rf ${DESTDIR}/usr/include/rpcsvc ! @-mkdir ${DESTDIR}/usr/include/rpcsvc @${ECHO} "Installing RPC service header and definition files" @for i in $(XFILES); do \ ! (install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done @for i in $(HDRS); do \ ! (install ${COPY} -m 644 $$i ${DESTDIR}/usr/include/rpcsvc) done @for i in $(HFILES); do \ ! (install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc) done @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/rpcsvc @chmod -R 755 ${DESTDIR}/usr/include/rpcsvc --- 17,39 ---- all: ${HDRS} install: all ! @if test ! -d ${DESTDIR}/usr/include/rpcsvc ; then \ ! ${ECHO} "Creating RPC service headers directory" ; \ ! mkdir ${DESTDIR}/usr/include/rpcsvc ; \ ! fi @${ECHO} "Installing RPC service header and definition files" @for i in $(XFILES); do \ ! cmp -s ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \ ! install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc ; \ ! done @for i in $(HDRS); do \ ! cmp -s $$i ${DESTDIR}/usr/include/rpcsvc/$$i || \ ! install ${COPY} -m 644 $$i ${DESTDIR}/usr/include/rpcsvc ; \ ! done @for i in $(HFILES); do \ ! cmp -s ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc/$$i || \ ! install -c -m 644 ${.CURDIR}/$$i ${DESTDIR}/usr/include/rpcsvc ; \ ! done @chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/rpcsvc @chmod -R 755 ${DESTDIR}/usr/include/rpcsvc Note that these dont actually change anything... They just stop an identical file being installed over the top of an existing one for No Good Reason(TM). I just copied the style of tests from the other include makefiles. It was not much fun to discover this on a 386SX-16... (now a 486, thank god! :-) Cheers, -Peter