Add a tip on how to sort targets when options helpers are used.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2018-06-18 10:29:47 +00:00
parent f57e003b89
commit 5f72d7b2e4
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51873

View file

@ -523,5 +523,26 @@ post-install-EXAMPLES-on:
<para><varname>test</varname></para>
</listitem>
</itemizedlist>
<tip>
<para>When using options helpers target keep them alphabetically
sorted, but keep the
<literal><replaceable>*</replaceable>-on</literal> before the
<literal><replaceable>*</replaceable>-off</literal>. When
also using the main target, keep the main target before the
optionnal ones:</para>
<programlisting>post-install:
# install generic bits
post-install-DOCS-on:
# Install documentation
post-install-X11-on:
# Install X11 related bits
post-install-X11-off:
# Install bits that should be there if X11 is disabled</programlisting>
</tip>
</sect1>
</chapter>