From owner-svn-doc-all@FreeBSD.ORG Mon Mar 24 16:35:38 2014 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 921B1C3B; Mon, 24 Mar 2014 16:35:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6549AAEA; Mon, 24 Mar 2014 16:35:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2OGZcFR081763; Mon, 24 Mar 2014 16:35:38 GMT (envelope-from mat@svn.freebsd.org) Received: (from mat@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2OGZc8p081762; Mon, 24 Mar 2014 16:35:38 GMT (envelope-from mat@svn.freebsd.org) Message-Id: <201403241635.s2OGZc8p081762@svn.freebsd.org> From: Mathieu Arnold Date: Mon, 24 Mar 2014 16:35:38 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r44343 - head/en_US.ISO8859-1/books/porters-handbook/makefiles X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 16:35:38 -0000 Author: mat (ports committer) Date: Mon Mar 24 16:35:37 2014 New Revision: 44343 URL: http://svnweb.freebsd.org/changeset/doc/44343 Log: - Add a note about OPTIONS_SUB. - Add a warning about the *_TARGET options helpers. Discussed with: bjk Sponsored by: Absolight 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 Mon Mar 24 14:36:59 2014 (r44342) +++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml Mon Mar 24 16:35:37 2014 (r44343) @@ -3691,6 +3691,13 @@ PLIST_SUB+= OPT1="" NO_OPT1="@comment " .else PLIST_SUB+= OPT1="@comment " NO_OPT1="" .endif + + + The value of OPTIONS_SUB is + ignored. Setting it to any value will add + PLIST_SUB entries for + all options. + @@ -4027,6 +4034,36 @@ LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/ + + Some of these variables, at least + ALL_TARGET and + INSTALL_TARGET, have their default + values set after the options are + processed. + + With the following lines in the + Makefile: + + ALL_TARGET= all + +DOCS_ALL_TARGET= doc + + If the DOCS option is enabled, + ALL_TARGET will have a final value of + all doc; if the option is disabled, it + would have a value of all. + + With only the options helper line in the + Makefile: + + DOCS_ALL_TARGET= doc + + If the DOCS option is enabled, + ALL_TARGET will have a final value of + doc; if the option is disabled, it + would have a value of all. + + <varname><replaceable>X</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname>