From 24824020f44090534128f973e8d313076295c2ed Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 26 Aug 1994 20:16:58 +0000 Subject: [PATCH] Added an update target. It does nothing by default but you can enable things in /etc/make.conf if you wish for those who might want to use it. directories has got enabled by this patch too whch I hadn't meant to do but there's no harm in it since the mtree stuff has been pulled over now. Reviewed by: Submitted by: --- Makefile | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c2a75e56d8bd..281b090cfacd 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.11 1994/08/25 10:47:30 paul Exp $ +# $Id: Makefile,v 1.12 1994/08/25 14:45:46 paul Exp $ # # Make command line options: # -DCLOBBER will remove /usr/include and MOST of /usr/lib @@ -85,7 +85,7 @@ CLEANDIR= clean CLEANDIR= cleandir .endif -world: directories cleandist mk includes libraries tools +world: directories update cleandist mk includes libraries tools @echo "--------------------------------------------------------------" @echo " Rebuilding ${DESTDIR} The whole thing" @echo "--------------------------------------------------------------" @@ -93,12 +93,27 @@ world: directories cleandist mk includes libraries tools ${MAKE} depend all install cd ${.CURDIR}/share/man && ${MAKE} makedb + directories: @echo "--------------------------------------------------------------" @echo " Making directories" @echo "--------------------------------------------------------------" @echo " XXX Not yet ready in 2.0.0" -# XXX cd ${.CURDIR}/etc && ${MAKE} distrib-dirs + cd ${.CURDIR}/etc && ${MAKE} distrib-dirs + +update: +.if defined(SUP_UPDATE) + @echo "--------------------------------------------------------------" + @echo "Running sup" + @echo "--------------------------------------------------------------" + @sup -v ${SUPFILE} +.endif +.if defined(CVS_UPDATE) + @echo "--------------------------------------------------------------" + @echo "Updating /usr/src from cvs repository" ${CVSROOT} + @echo "--------------------------------------------------------------" + cd ${.CURDIR} && cvs update -P -d +.endif cleandist: .if !defined(NOCLEANDIR) @@ -178,10 +193,6 @@ libraries: cd ${.CURDIR}/secure/lib && \ ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} .endif -.if exists(sys) - cd ${.CURDIR}/sys/libkern && \ - ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} -.endif .if exists(lib) cd ${.CURDIR}/lib && \ ${MAKE} depend all install ${CLEANDIR} ${OBJDIR}