On Sun, 2005-10-16 at 22:54 -0700, Brian J. Tarricone wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Iago Rubio wrote: > > On Sun, 2005-10-16 at 15:03 +0800, 周清博 wrote: > > > >> If I use them as ordinary files, how can I know the path > >>after users' installation? What should I do in the configure.ac and > >>Makefile.am? > > > > You should install them in a "known" location defined in one > > configure.ac macro. > > > > As example if you've got the files in the "images" directory this code > > in the root Makefile.am should do the trick to install them. > > [snip: some overcomplicated auto*-foo stuff]
Gee, almost "overcomplicated" ... :) > I'd suggest just defining a simple directory under $datadir. No need to > touch configure.ac at all, and this method is easy to use and relatively > easy to remember. In the directory in your source tree with the image > file, put this in Makefile.am: > > imagedir = $(datadir)/myappname/pixmaps > image_DATA = image.png > EXTRA_DIST = $(image_DATA) You'll need to touch configure.ac then to make it to play with this directory's Makefile.am, right ? AC_OUTPUT([ ... imagedir/Makefile ... ]) ITOH just eight lines of shell script is not something so mad to call it "overcomplicated", isn't it ? ;) _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list