Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 09:40:30 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernando.apesteguia@gmail.com>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: On Docs option and custom build target
Message-ID:  <63E602006A4E041580E28750@atuin.in.mat.cc>
In-Reply-To: <CAGwOe2aJWSNnG8YBuBpxjtE7S_bN5NkWwaiKWDmQzJmWMQUDoQ@mail.gmail.com>
References:  <CAGwOe2aJWSNnG8YBuBpxjtE7S_bN5NkWwaiKWDmQzJmWMQUDoQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
+--On 23 septembre 2014 23:23:31 +0200 Fernando Apestegu=C3=ADa
<fernando.apesteguia@gmail.com> wrote:
|=20
| do-build:
|         @cd ${BUILD_WRKSRC}/ && ${MAKE}
| .if ${PORT_OPTIONS:MDOCS}
|         @cd ${BUILD_WRKSRC}/ && ${MAKE_CMD} doc
| .endif
|=20

That should be:

ALL_TARGET=3D	all
DOCS_ALL_TARGET=3D	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>

--=20
Mathieu Arnold



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63E602006A4E041580E28750>