tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make question

Hauke Fath wrote:
Hi Hauke,

I would like to build a package from a Makefile with a changing set of
build options, like so:

.for _opt_ in ${PKG_SUPPORTED_OPTIONS}
        @echo "=> Building without option ${_opt_}
        ${MAKE} clean
Unless I am mistaken, the option name must be prefixed by "-" to be disabled in PKG_OPTIONS_VAR. I am not sure, but I would try something like: ${MAKE} ${PKG_OPTIONS_VAR}="-${_opt_} ${PKG_SUPPORTED_OPTIONS:N${_opt_}:Q}"

I don't know if the quotation marks are necessary...

Home | Main Index | Thread Index | Old Index