[aklug] Re: Another Autotools Question: Installing a Directory

From: Christopher Howard <choward@indicium.us>
Date: Sat Dec 12 2009 - 22:13:47 AKST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christopher Howard wrote:
> Shane Spencer wrote:
>> Did the docs not say?
>
>> http://www.gnu.org/software/autoconf/manual/html_node/index.html
>> http://www.gnu.org/software/automake/manual/html_node/Install.html
>
>> On Sat, Dec 12, 2009 at 10:24 AM, Christopher Howard
>> <choward@indicium.us> wrote:
>> I have another question, but rather than post it here again I will
>> simply link to my online forum post:
>
>> http://www.linuxquestions.org/questions/programming-9/autotools-n00b-how-to-install-the-directory-775112/
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>>>
>> ---------
>> To unsubscribe, send email to <aklug-request@aklug.org>
>> with 'unsubscribe' in the message body.
>
> Indeed, here is there "explanation":
>
> *** 12.2 The Two Parts of Install ***
>
> Automake generates separate install-data and install-exec rules, in case
> the installer is installing on multiple machines that share directory
> structurethese targets allow the machine-independent parts to be
> installed only once. install-exec installs platform-dependent files, and
> install-data installs platform-independent files. The install target
> depends on both of these targets. While Automake tries to automatically
> segregate objects into the correct category, the Makefile.am author is,
> in the end, responsible for making sure this is done correctly.
> Variables using the standard directory prefixes data, info, man,
> include, oldinclude, pkgdata, or pkginclude are installed by
> install-data.
>
> Variables using the standard directory prefixes bin, sbin,
> libexec, sysconf, localstate, lib, or pkglib are installed by
> install-exec.
>
> For instance, data_DATA files are installed by install-data, while
> bin_PROGRAMS files are installed by install-exec.
>
> Any variable using a user-defined directory prefix with exec in the
> name (e.g., myexecbin_PROGRAMS) is installed by install-exec. All other
> user-defined prefixes are installed by install-data.
>
> *****
>
> So what do I actually put in data/Makefile.am?
>
> Here is what I put in for the binary to be installed:
>
> *** src/Makefile.am ***
>
> bin_PROGRAMS = lusus_stack
> lusus_stack_SOURCES = data.cpp lusus_stack.cpp lusus_stack_funcs.cpp
> lusus_stack_LDADD = -lXxf86vm -lclanApp -lclanCore -lclanDisplay
> -lclanGL -lclanSound -lclanVorbis -lfontconfig -lfreetype -lpthread
>
> *****
>

Just thought I'd mention: I was able to get things figured out and
convert my program over to autotools. Everything seems to work fine,
except I don't have the configure script actually checking for library
dependencies. (It never checks them correctly, so I just turned it off.
I think I can get that fixed after I communicate with the ClanLib guys
about how they check for the libs.)

Well, only cost me one Saturday... not too bad, all things considered.

- --
Christopher Howard
http://indicium.us
http://theologia.indicium.us
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksklCsACgkQQ5FLNdi0BcUYwwCgjppDlEoUIPou+fgnCnIu5+Pn
CkIAoI2mFDea+QTAP8xyByYML3HcEupd
=mWMp
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sat Dec 12 22:13:49 2009

This archive was generated by hypermail 2.1.8 : Sat Dec 12 2009 - 22:13:49 AKST