Date: Wed, 15 Nov 2017 06:25:22 -0700 From: Adam Weinberger <adamw@adamw.org> To: blubee blubeeme <gurenchan@gmail.com> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: A project with it's own Makefiles Message-ID: <A4FFD1BE-1C18-4877-BCA1-7163120E364E@adamw.org> In-Reply-To: <CALM2mE=iebNMBaPqaBZfdbfeKKhEVjgFn-uPjhui0bmn%2BU89jA@mail.gmail.com> References: <CALM2mE=iebNMBaPqaBZfdbfeKKhEVjgFn-uPjhui0bmn%2BU89jA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 15 Nov, 2017, at 1:08, blubee blubeeme <gurenchan@gmail.com> wrote: >=20 > I have a port that has a it's own Makefiles that you're suppose to = call to > build for example the folder structure is like this: >=20 > project > --subfolderA > ---subfolderA-src > ---subfolderA-Makefile >=20 > --subfolderB > ---subfolderB-src > ---subfolderB-Makefile >=20 > --subfolderC > ---subfolderC-src > ---subfolderC-Makefile >=20 > you're suppose to choose which sets of examples you want to build. >=20 > To port this to FreeBSD do I have to write a cmake or makefile to > encapsulate these sub directories or is there tools already in place = to > build this? Your best bet is to use the under-appreciated DO_MAKE_BUILD macro. It = sets the make environment and args properly. do-build: ${DO_MAKE_BUILD} -C ${WRKSRC}/subfolderA ${DO_MAKE_BUILD} -C ${WRKSRC}/subfolderB # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A4FFD1BE-1C18-4877-BCA1-7163120E364E>