Date: Wed, 24 Sep 2014 20:52:38 +0200 From: Tijl Coosemans <tijl@FreeBSD.org> To: Fernando =?ISO-8859-1?Q?Apestegu=EDa?= <fernando.apesteguia@gmail.com> Cc: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: On Docs option and custom build target Message-ID: <20140924205238.52054971@kalimero.tijl.coosemans.org> 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 Tue, 23 Sep 2014 23:23:31 +0200 Fernando Apestegu=EDa <fernando.apestegu= ia@gmail.com> wrote: > I have a Makefile for an application that provides both examples and > documentation. I created the two options in the Makefile (both enabled > by default). > The package doesn't provide any flags stock like --with-docs or > --with-examples, so I have a custom target like this: >=20 > do-build: > @cd ${BUILD_WRKSRC}/ && ${MAKE} > .if ${PORT_OPTIONS:MDOCS} > @cd ${BUILD_WRKSRC}/ && ${MAKE_CMD} doc > .endif You don't have to override do-build like this. You can build the documentation from a post-build target. > However, when I try to run this in poudriere, I get the following error: >=20 > make[1]: don't know how to make doc. Stop >=20 > make[1]: stopped in /wrkdirs/usr/ports/graphics/code-eli/work/.build > *** Error code 2 Does the makefile in BUILD_WRKSRC actually have a doc target? Is doc a subdirectory maybe?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140924205238.52054971>