svn commit: r46888 - head/en_US.ISO8859-1/books/porters-handbook/makefiles
Mathieu Arnold
mat at FreeBSD.org
Mon Jun 29 07:50:07 UTC 2015
Author: mat
Date: Mon Jun 29 07:50:06 2015
New Revision: 46888
URL: https://svnweb.freebsd.org/changeset/doc/46888
Log:
Do *not* tell people to use := in depends.
Modified:
head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Sun Jun 28 12:52:10 2015 (r46887)
+++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Mon Jun 29 07:50:06 2015 (r46888)
@@ -3115,10 +3115,15 @@ xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr
<package role="port">devel/gmake</package> to
<varname>BUILD_DEPENDS</varname>. To prevent such additional
dependencies from polluting <varname>RUN_DEPENDS</varname>,
- take care to assign with expansion, that is, expand the value
- before assigning it to the variable:</para>
-
- <programlisting>RUN_DEPENDS:= ${BUILD_DEPENDS}</programlisting>
+ create another variable with the current content of
+ <varname>BUILD_DEPENDS</varname> and assign it to both
+ <varname>BUILD_DEPENDS</varname> and
+ <varname>RUN_DEPENDS</varname>:</para>
+
+ <programlisting>MY_DEPENDS= some:${PORTSDIR}/devel/some \
+ other:${PORTSDIR}/lang/other
+BUILD_DEPENDS= ${MY_DEPENDS}
+RUN_DEPENDS= ${MY_DEPENDS}</programlisting>
</sect2>
<sect2 xml:id="makefile-build_depends">
More information about the svn-doc-head
mailing list