From 5f72d7b2e46f59fb443bf0f6f9b6940b9a9c0ae2 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Mon, 18 Jun 2018 10:29:47 +0000 Subject: [PATCH] Add a tip on how to sort targets when options helpers are used. Sponsored by: Absolight --- .../books/porters-handbook/order/chapter.xml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml index 8fca51c980..c7bddf24fe 100644 --- a/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml @@ -523,5 +523,26 @@ post-install-EXAMPLES-on: test + + + When using options helpers target keep them alphabetically + sorted, but keep the + *-on before the + *-off. When + also using the main target, keep the main target before the + optionnal ones: + + 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 +