Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 1995 05:54:21 +0800 (WST)
From:      Peter Wemm <peter@haywire.dialix.com>
To:        hackers@FreeBSD.org
Subject:   Some makefile patches to stop the !#^%!& include files being touched
Message-ID:  <Pine.SV4.3.91.950516054705.16341B-100000@haywire.DIALix.COM>

next in thread | raw e-mail | index | archive | help
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 <dlfcn.h> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.91.950516054705.16341B-100000>