Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] New Makefile for building C client

Hi Ian,

This hardly seems worth a new bug being filed - when you are
installing in the install target, please prefix all destinations with
$DESTDIR like so:

install ${INSTALL_OPTS} ${MQTTLIB_C_TARGET} ${DESTDIR}${libdir}

The lack of a / separator is deliberate.

DESTDIR is undefined normally, so everything should install to
/usr/local/... as you'd expect. Setting DESTDIR allows the files to be
installed to the correct location within a tree, but not within the
actual OS files. Doing this makes packaging much much more
straightforward. See e.g.
http://www.debian.org/doc/manuals/maint-guide/modify.en.html

Cheers,

Roger



On Wed, Oct 30, 2013 at 2:18 PM, Ian Craggs
<icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> I've created a new Makefile for building the C client, in the root directory
> of the C project on Linux.  I've attempted to conform to as many standards
> as I could find, like:
>
> http://www.gnu.org/prep/standards/html_node/Standard-Targets.html
> http://l4u-00.jinr.ru/usoft/WWW/HOWTO/GCC-HOWTO-6.html
>
> It adds library versioning, targets for install/uninstall, clean and doc.
>
> I intend to do the same for MacOS.  For Windows, I'm planning a Visual
> Studio project and Ant for automated builds.
>
> I think that will cover the major platforms of interest for now.
>
> Ian
>
> _______________________________________________
> paho-dev mailing list
> paho-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/paho-dev
>


Back to the top