Differential D32552 Diff 97072 documentation/content/en/books/porters-handbook/makefiles/_index.adoc
Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/porters-handbook/makefiles/_index.adoc
Show First 20 Lines • Show All 4,094 Lines • ▼ Show 20 Lines | |||||
When an option need another option to work, see <<options-implies>>. | When an option need another option to work, see <<options-implies>>. | ||||
Options conflicts:: | Options conflicts:: | ||||
When an option cannot work if another is also enabled, see <<options-prevents>>. | When an option cannot work if another is also enabled, see <<options-prevents>>. | ||||
Build targets:: | Build targets:: | ||||
When an option need some extra processing, see <<options-targets>>. | When an option need some extra processing, see <<options-targets>>. | ||||
[[flavors_sub]] | |||||
==== `FLAVORS_SUB\ | |||||
lwhsu: typo? | |||||
If `FLAVORS_SUB` is set to `yes` then each of the flavors added to `FLAVORS` will be added to `PLIST_SUB` and `SUB_LIST`, for example: | |||||
[.programlisting] | |||||
.... | |||||
FLAVORS= flav1 flav2 | |||||
FLAVORS_SUB= yes | |||||
.... | |||||
is equivalent to: | |||||
[.programlisting] | |||||
.... | |||||
FLAVORS= flav1 flav2 | |||||
.include <bsd.port.pre.mk> | |||||
.if ${FLAVOR} == flav1 | |||||
PLIST_SUB= FLAV1="" NO_FLAV1="@comment " FLAV2="@comment " NO_FLAV2="" | |||||
SUB_LIST= FLAV1="" NO_FLAV1="@comment " FLAV2="@comment " NO_FLAV2="" | |||||
.fi | |||||
impUnsubmitted Not Done Inline Actions.endif imp: .endif | |||||
.if ${FLAVOR} == flav2 | |||||
PLIST_SUB= FLAV2="" NO_FLAV2="@comment " FLAV1="@comment " NO_FLAV1="" | |||||
SUB_LIST= FLAV2="" NO_FLAV2="@comment " FLAV1="@comment " NO_FLAV1="" | |||||
.fi | |||||
impUnsubmitted Not Done Inline Actions.endif imp: .endif | |||||
.include <bsd.port.post.mk> | |||||
.... | |||||
[[options_sub]] | [[options_sub]] | ||||
==== `OPTIONS_SUB` | ==== `OPTIONS_SUB` | ||||
If `OPTIONS_SUB` is set to `yes` then each of the options added to `OPTIONS_DEFINE` will be added to `PLIST_SUB` and `SUB_LIST`, for example: | If `OPTIONS_SUB` is set to `yes` then each of the options added to `OPTIONS_DEFINE` will be added to `PLIST_SUB` and `SUB_LIST`, for example: | ||||
[.programlisting] | [.programlisting] | ||||
.... | .... | ||||
OPTIONS_DEFINE= OPT1 | OPTIONS_DEFINE= OPT1 | ||||
▲ Show 20 Lines • Show All 1,193 Lines • Show Last 20 Lines |
typo?