Re: [OT, maybe] Starting with the Autotools



Hello,


2009/3/18 Yann Droneaud <ydroneaud mandriva com>

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

I'm extremely grateful for the answers, some in private, and also thanks a lot to Mr. Yann. I made,

./Makefile.am

SUBDIRS = src

data_DATA = data/img00.png data/img01.png data/img02.png data/img03.png\
            data/img04.png data/img05.png data/img06.png data/img07.png\
            data/img08.png data/img09.png data/img10.png data/img11.png\
            data/img12.png data/img13.png data/img14.png data/img15.png\
            data/img16.png data/img17.png data/img18.png

EXTRA_DIST = data $(data_DATA)

./data/Makefile.am

EXTRA_DIST = *.png

And it seems to work fine.

But in case of a really OFF TOPIC, I must to ask you for a good programming list which accepts general linux programming questions (but not so an specific GTK+ libraries usage...)

BTW, Thanks a lot !

S











 

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]