Re: [OT, maybe] Starting with the Autotools



Le samedi 14 mars 2009 à 18:00 +0100, Sever P A a écrit :
> Hello,
> 
> I'm starting with The Autotools.
> 
> After Googling & reading some online documentation I don't reach to
> understand how manage "the data files". I mean... My application (that
> links gtk+ libraries...) uses some PNG image files but I don't know
> how integrate them in the mechanism of the autotools.
> 
> * Maybe the PNG files (as data files) must be in an specific directory
> in the project...
> 
> * Maybe there are an specific instructions either in "configure.ac" or
> in "Makefile.am"...

In your Makefile.am, add

dist_pkgdatadir_DATA = foo.png bar.png

Your PNGs will be installed in $(datadir)/$(PACKAGE)

You can customize the installation directory

pngdir = $(datadir)/$(PACKAGE)/img
dist_pngdir_DATA = foo.png bar.png

Please read automake manual:

http://www.gnu.org/software/automake/manual/html_node/Data.html#Data
http://www.gnu.org/software/automake/manual/html_node/Install.html#Install
http://www.gnu.org/software/automake/manual/html_node/Uniform.html#Uniform
http://www.gnu.org/software/automake/manual/standards/Directory-Variables.html#Directory-Variables

Regards

-- 
Yann Droneaud




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]