On Nov 20, 2007, at 5:03 PM, David Bruce wrote:
Hi,I'm trying to rewrite my Makefile.am's to make better use of Automake's built-in variables. I'm a little stuck on how to get my program's (tuxmath) data files installed in a heirarchical tree. My current scheme puts the dataunder /usr/local/share/tuxmath, with deeper directories suchas /usr/local/share/tuxmath/images, /usr/local/share/tuxmath/images/ backgrounds,and so forth. If I just use: dist_pkgdata_DATA = bkgd1.jpg bkgd2.jpg bkgd3.jpgin my Makefile.am for the backgrounds subdirectory, the files just wind up in$(pkgdata) itself, i.e. /usr/local/share/tuxmath.Is there a proper, automated, "Automake Way" to get the whole data treeinstalled in the desired location?
Hi David,create the directory hierarchy in your source tree and then list all the files in nobase_dist_pkgdata_DATA, e.g.:
nobase_dist_pkgdata_DATA = images/vortex.pgm sounds/whirl.oggSee: http://www.gnu.org/software/automake/manual/html_node/ Alternative.html
Cheers, -- Benoit Sigoure aka Tsuna EPITA Research and Development Laboratory
PGP.sig
Description: This is a digitally signed message part