Can I build multiple executables in 1 port Makefile?

blubee blubeeme gurenchan at gmail.com
Sat Nov 25 08:14:09 UTC 2017


let's try this again:

OPTIONS_DEFINE= X11 X11_RAWFB

USE_GITHUB= yes
GH_ACCOUNT= vurtun
GH_TAGNAME= 36a396f

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MX11}
do-build:
@(${DO_MAKE_BUILD} -C ${WRKSRC}/demo/x11)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/demo/x11/bin/x11-zahnrad
${STAGEDIR}${PREFIX}/bin
echo ${STAGEDIR}${PREFIX}/bin
.endif

.if ${PORT_OPTIONS:MX11_RAWFB}
do-build:
@(${DO_MAKE_BUILD} -C ${WRKSRC}/demo/x11_rawfb)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/demo/x11_rawfb/bin/x11-rawfb-zahnrad
${STAGEDIR}${PREFIX}/bin
echo ${STAGEDIR}${PREFIX}/bin
.endif

.include <bsd.port.mk>

the port will build either or but not both, how can I build and install
both? Is that possible?


On Sat, Nov 25, 2017 at 4:12 PM, blubee blubeeme <gurenchan at gmail.com>
wrote:

> A sample of my makefile:
>
>


More information about the freebsd-ports mailing list