From owner-freebsd-ports@FreeBSD.ORG Tue Sep 23 21:23:33 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD5821CB for ; Tue, 23 Sep 2014 21:23:33 +0000 (UTC) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5BC7FB76 for ; Tue, 23 Sep 2014 21:23:33 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id d1so6057210wiv.6 for ; Tue, 23 Sep 2014 14:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=QFoiVwRjiAP4eCN+KOcOyoiGUhXJGvRn8Tkwx0zdSSw=; b=GVX4IXOapaYkbsGFg6HT2ItoxAgWJXqgrcORCv4Hi/Zs+w+7vbdi7f5BeqOgWVrAp4 OPz2K8E8kGl7mCJE4e/qGrpcthRSK7UFv+aHMbZep0df2U8gui0yKQv64yV1Awg9oMAD ccJEgaKHKs56lPlPvBpMrw80OkH10VCAA2qJ+rA0FkdYSCrL1oPtbCq2GandgfBoyRXf Mk/nhgz7ZnLoFcHj2g7qNlZogLfYNqh1h8rOsv/rON3Seni3vIP67WI21O4a3Cs+sXra seQaTU3fI61XSDctjtwYv0ak6qCX045jx8yf7O1XUUyz8UudYmLmYr7jeFJfgYaTc27c zJog== MIME-Version: 1.0 X-Received: by 10.194.237.164 with SMTP id vd4mr2811787wjc.46.1411507411748; Tue, 23 Sep 2014 14:23:31 -0700 (PDT) Received: by 10.180.104.66 with HTTP; Tue, 23 Sep 2014 14:23:31 -0700 (PDT) Date: Tue, 23 Sep 2014 23:23:31 +0200 Message-ID: Subject: On Docs option and custom build target From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= To: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 21:23:33 -0000 Hi, 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: do-build: @cd ${BUILD_WRKSRC}/ && ${MAKE} .if ${PORT_OPTIONS:MDOCS} @cd ${BUILD_WRKSRC}/ && ${MAKE_CMD} doc .endif (Just FYI, the enabling/disabling of the examples is done in the post-patch target by modifying a CMakeList.txt...) I tried the four combinations of the options through port test and everything went fine. However, when I try to run this in poudriere, I get the following error: make[1]: don't know how to make doc. Stop make[1]: stopped in /wrkdirs/usr/ports/graphics/code-eli/work/.build *** Error code 2 Since it builds the normal package, and it tries to execute make doc, it was able to change the directory to BUILD_WRKSRC. I assume I'm doing something fundamentally wrong, but I can't figure out what it is. Any help is appreciated. Thanks in advance.