12-17-07 06:42 AM
William Pursell a écrit :
> On 7 Dec, 05:14, Andrew Smith <n...@whe.re> wrote:
>
>
> You can avoid using a dist-hook and get that file
> to be installed by putting the following in Makefile.am:
>
> pixdir = $(datadir)/pixmaps
> pix_DATA = pixmaps/icon
>
> ($datadir, by default is, $prefix/share)
>
> This is slightly less flexible in that you can't
> specify "pixaps/*", but you can do something like:
>
> pix_DATA = $(shell ls ${srcdir}/pixmaps | sed 's@^@${srcdir}/pix
maps/
> @')
>
> I would highly recommend against doing that. Let
> me emphasize highly. I'm not sure why I even
> mention it here, it is so heinous.
> A much better solution would be to generate the
> list at configure time with the following in
> configure.ac:
>
> PIXMAP_LIST=${srcdir}/pixmaps/*
> AC_SUBST([PIXMAP_LIST])
>
>
> and then in Makefile.am:
> pix_DATA = @PIXMAP_LIST@
>
>
Thanks William, that worked!
I don't know why dist-hook was being used. I didn't write the autotools
files for this project.
So I removed the dist-hook and instead added:
pixdir = $(datadir)/pixmaps
pix_DATA = pixmaps/asunder.png
EXTRA_DIST = asunder.desktop pixmaps/asunder.png
I don't know why, but it works. I kind of gave up on understanding the
autotools
Thnaks again.
Cheers,
Andrew
[ Post a follow-up to this message ]
|