svn commit: r46888 - head/en_US.ISO8859-1/books/porters-handbook/makefiles

Mathieu Arnold <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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">
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.