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

From: Christopher Howard <choward@indicium.us>
Date: Sat Dec 12 2009 - 14:14:03 AKST

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

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
structure—these 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

*****

- --
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

iEYEARECAAYFAkskI7sACgkQQ5FLNdi0BcXn4gCfZTBzNNUWb1hvJbAl2XNNjhJ2
P+0AoIFI+e+/8eKp3qHP2rH7F237FdtH
=FbP7
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sat Dec 12 14:14:10 2009

This archive was generated by hypermail 2.1.8 : Sat Dec 12 2009 - 14:14:10 AKST