It's a bit odd, but "make update" in src/ can also update the ports/,
doc/, and now www/ trees, but only using the "cvsup" transport. When "make update" is run using a tree's makefile, it can also use "cvs" (except for www/) and "svn" (only src/). Clean up documentation and code regarding "make update": - Increase oddness by adding support for WWWSUPFILE and NO_WWWUPDATE to Makefile.inc1 (analogous to PORTSSUPFILE/NO_PORTSUPDATE and DOCSUPFILE/NO_DOCUPDATE; WWWSUPFILE already supported by www/Makefile). - Document all trees that support CVS_UPDATE. - Document all trees that support SUP_UPDATE. - Document SVN_UPDATE. - Document NO_WWWUPDATE. - make.conf(5) mistakenly said that *SUPFILE* had defaults. - Add an example entry for WWWSUPFILE.
This commit is contained in:
parent
db9ff08bb8
commit
69c488cdc6
2
Makefile
2
Makefile
@ -19,7 +19,7 @@
|
|||||||
# kernel - buildkernel + installkernel.
|
# kernel - buildkernel + installkernel.
|
||||||
# kernel-toolchain - Builds the subset of world necessary to build a kernel
|
# kernel-toolchain - Builds the subset of world necessary to build a kernel
|
||||||
# doxygen - Build API documentation of the kernel, needs doxygen.
|
# doxygen - Build API documentation of the kernel, needs doxygen.
|
||||||
# update - Convenient way to update your source tree (cvs).
|
# update - Convenient way to update your source tree(s).
|
||||||
# check-old - List obsolete directories/files/libraries.
|
# check-old - List obsolete directories/files/libraries.
|
||||||
# check-old-dirs - List obsolete directories.
|
# check-old-dirs - List obsolete directories.
|
||||||
# check-old-files - List obsolete files.
|
# check-old-files - List obsolete files.
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
# -DNO_KERNELOBJ do not run ${MAKE} obj in ${MAKE} buildkernel
|
# -DNO_KERNELOBJ do not run ${MAKE} obj in ${MAKE} buildkernel
|
||||||
# -DNO_PORTSUPDATE do not update ports in ${MAKE} update
|
# -DNO_PORTSUPDATE do not update ports in ${MAKE} update
|
||||||
# -DNO_DOCUPDATE do not update doc in ${MAKE} update
|
# -DNO_DOCUPDATE do not update doc in ${MAKE} update
|
||||||
|
# -DNO_WWWUPDATE do not update www in ${MAKE} update
|
||||||
# -DNO_CTF do not run the DTrace CTF conversion tools on built objects
|
# -DNO_CTF do not run the DTrace CTF conversion tools on built objects
|
||||||
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
|
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
|
||||||
# TARGET="machine" to crossbuild world for a different machine type
|
# TARGET="machine" to crossbuild world for a different machine type
|
||||||
@ -904,7 +905,7 @@ doxygen:
|
|||||||
#
|
#
|
||||||
# update
|
# update
|
||||||
#
|
#
|
||||||
# Update the source tree, by running cvsup and/or running cvs to update to the
|
# Update the source tree(s), by running cvsup/cvs/svn to update to the
|
||||||
# latest copy.
|
# latest copy.
|
||||||
#
|
#
|
||||||
update:
|
update:
|
||||||
@ -927,6 +928,9 @@ update:
|
|||||||
.if defined(DOCSUPFILE) && !defined(NO_DOCUPDATE)
|
.if defined(DOCSUPFILE) && !defined(NO_DOCUPDATE)
|
||||||
@${SUP} ${SUPFLAGS} ${DOCSUPFILE}
|
@${SUP} ${SUPFLAGS} ${DOCSUPFILE}
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(WWWSUPFILE) && !defined(NO_WWWUPDATE)
|
||||||
|
@${SUP} ${SUPFLAGS} ${WWWSUPFILE}
|
||||||
|
.endif
|
||||||
.endif
|
.endif
|
||||||
.if defined(CVS_UPDATE)
|
.if defined(CVS_UPDATE)
|
||||||
@cd ${.CURDIR} ; \
|
@cd ${.CURDIR} ; \
|
||||||
|
@ -188,6 +188,7 @@
|
|||||||
#SUPFILE= /usr/share/examples/cvsup/standard-supfile
|
#SUPFILE= /usr/share/examples/cvsup/standard-supfile
|
||||||
#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
|
#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
|
||||||
#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile
|
#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile
|
||||||
|
#WWWSUPFILE= /usr/share/examples/cvsup/www-supfile
|
||||||
#
|
#
|
||||||
# top(1) uses a hash table for the user names. The size of this hash
|
# top(1) uses a hash table for the user names. The size of this hash
|
||||||
# can be tuned to match the number of local users. The table size should
|
# can be tuned to match the number of local users. The table size should
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd December 15, 2009
|
.Dd June 16, 2011
|
||||||
.Dt MAKE.CONF 5
|
.Dt MAKE.CONF 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -181,7 +181,11 @@ options.
|
|||||||
.Pq Vt bool
|
.Pq Vt bool
|
||||||
Set this to use
|
Set this to use
|
||||||
.Xr cvs 1
|
.Xr cvs 1
|
||||||
to update your ports with
|
to update your
|
||||||
|
.Pa src , ports
|
||||||
|
and
|
||||||
|
.Pa doc
|
||||||
|
trees with
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
.It Va CXXFLAGS
|
.It Va CXXFLAGS
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
@ -202,8 +206,8 @@ The documentation
|
|||||||
.Ar supfile
|
.Ar supfile
|
||||||
to use when doing a
|
to use when doing a
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
This defaults to
|
For example,
|
||||||
.Pa /usr/share/examples/cvsup/doc\-supfile .
|
.Pa /usr/share/examples/cvsup/doc-supfile .
|
||||||
.It Va INSTALL
|
.It Va INSTALL
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
the default install command.
|
the default install command.
|
||||||
@ -259,14 +263,18 @@ Set this to not update the doc tree during
|
|||||||
.Pq Vt bool
|
.Pq Vt bool
|
||||||
Set this to not update the ports tree during
|
Set this to not update the ports tree during
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
|
.It Va NO_WWWUPDATE
|
||||||
|
.Pq Vt bool
|
||||||
|
Set this to not update the www tree during
|
||||||
|
.Dq Li "make update" .
|
||||||
.It Va PORTSSUPFILE
|
.It Va PORTSSUPFILE
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
The ports
|
The ports
|
||||||
.Ar supfile
|
.Ar supfile
|
||||||
to use when doing a
|
to use when doing a
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
This defaults to
|
For example,
|
||||||
.Pa /usr/share/examples/cvsup/ports\-supfile .
|
.Pa /usr/share/examples/cvsup/ports-supfile .
|
||||||
.It Va SUP
|
.It Va SUP
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
The location of the
|
The location of the
|
||||||
@ -281,24 +289,20 @@ The first
|
|||||||
.Ar supfile
|
.Ar supfile
|
||||||
to use when doing a
|
to use when doing a
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
This defaults to
|
For example,
|
||||||
.Pa /usr/share/examples/cvsup/standard\-supfile .
|
.Pa /usr/share/examples/cvsup/standard-supfile .
|
||||||
.It Va SUPFILE1
|
.It Va SUPFILE1
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
The second
|
The second
|
||||||
.Ar supfile
|
.Ar supfile
|
||||||
to use when doing a
|
to use when doing a
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
This defaults to
|
|
||||||
.Pa /usr/share/examples/cvsup/secure\-supfile .
|
|
||||||
.It Va SUPFILE2
|
.It Va SUPFILE2
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
The third
|
The third
|
||||||
.Ar supfile
|
.Ar supfile
|
||||||
to use when doing a
|
to use when doing a
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
This defaults to
|
|
||||||
.Pa /usr/share/examples/cvsup/secure\-supfile .
|
|
||||||
.It Va SUPFLAGS
|
.It Va SUPFLAGS
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
The flag for the
|
The flag for the
|
||||||
@ -315,16 +319,28 @@ The hostname of the sup server to use when doing
|
|||||||
.Pq Vt bool
|
.Pq Vt bool
|
||||||
Set this to use
|
Set this to use
|
||||||
.Xr cvsup 1
|
.Xr cvsup 1
|
||||||
to update your ports with
|
to update your
|
||||||
|
.Pa src , ports , doc
|
||||||
|
and
|
||||||
|
.Pa www
|
||||||
|
trees with
|
||||||
|
.Dq Li "make update" .
|
||||||
|
.It Va SVN_UPDATE
|
||||||
|
.Pq Vt bool
|
||||||
|
Set this to use
|
||||||
|
.Xr svn 1
|
||||||
|
to update your
|
||||||
|
.Pa src
|
||||||
|
tree with
|
||||||
.Dq Li "make update" .
|
.Dq Li "make update" .
|
||||||
.It Va WWWSUPFILE
|
.It Va WWWSUPFILE
|
||||||
.Pq Vt str
|
.Pq Vt str
|
||||||
The www
|
The www
|
||||||
.Ar supfile
|
.Ar supfile
|
||||||
to use when doing a
|
to use when doing a
|
||||||
.Dq Li "make update"
|
.Dq Li "make update" .
|
||||||
This defaults to
|
For example,
|
||||||
.Pa /usr/share/examples/cvsup/www\-supfile .
|
.Pa /usr/share/examples/cvsup/www-supfile .
|
||||||
.El
|
.El
|
||||||
.Ss "BUILDING THE KERNEL"
|
.Ss "BUILDING THE KERNEL"
|
||||||
The following list provides a name and short description for variables
|
The following list provides a name and short description for variables
|
||||||
@ -730,6 +746,7 @@ filter, or both.
|
|||||||
.Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
|
.Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
|
||||||
.It Pa /etc/make.conf
|
.It Pa /etc/make.conf
|
||||||
.It Pa /usr/doc/Makefile
|
.It Pa /usr/doc/Makefile
|
||||||
|
.It Pa /usr/ports/Makefile
|
||||||
.It Pa /usr/share/examples/etc/make.conf
|
.It Pa /usr/share/examples/etc/make.conf
|
||||||
.It Pa /usr/share/mk/sys.mk
|
.It Pa /usr/share/mk/sys.mk
|
||||||
.It Pa /usr/src/Makefile
|
.It Pa /usr/src/Makefile
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd March 18, 2011
|
.Dd June 16, 2011
|
||||||
.Dt BUILD 7
|
.Dt BUILD 7
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -517,6 +517,10 @@ target.
|
|||||||
If set, the update process does not update the Ports tree as part of the
|
If set, the update process does not update the Ports tree as part of the
|
||||||
.Dq make update
|
.Dq make update
|
||||||
target.
|
target.
|
||||||
|
.It Va NO_WWWUPDATE
|
||||||
|
If set, the update process does not update the www tree as part of the
|
||||||
|
.Dq make update
|
||||||
|
target.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
Builds under directory
|
Builds under directory
|
||||||
|
Loading…
Reference in New Issue
Block a user