On Docs option and custom build target

Mathieu Arnold mat at FreeBSD.org
Fri Sep 26 06:40:35 UTC 2014


+--On 23 septembre 2014 23:23:31 +0200 Fernando Apesteguía
<fernando.apesteguia at gmail.com> wrote:
| 
| do-build:
|         @cd ${BUILD_WRKSRC}/ && ${MAKE}
| .if ${PORT_OPTIONS:MDOCS}
|         @cd ${BUILD_WRKSRC}/ && ${MAKE_CMD} doc
| .endif
| 

That should be:

ALL_TARGET=	all
DOCS_ALL_TARGET=	doc

And then you don't need to include port.options.mk.

As explained in
<https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html#options-variables>

-- 
Mathieu Arnold


More information about the freebsd-ports mailing list