summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1994-08-26 20:16:58 +0000
committerpaul <paul@FreeBSD.org>1994-08-26 20:16:58 +0000
commit24824020f44090534128f973e8d313076295c2ed (patch)
tree6b47b7d790d72fc4446c01cef722dc1038a17ba1 /Makefile
parent189837a5f0be92dc2d6ba9cef3abc3f0dca0034b (diff)
downloadFreeBSD-src-24824020f44090534128f973e8d313076295c2ed.zip
FreeBSD-src-24824020f44090534128f973e8d313076295c2ed.tar.gz
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:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index c2a75e5..281b090 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}
OpenPOWER on IntegriCloud