On 09/19/2012 04:23 PM, Vincent Torri wrote:
Hey

our documentation provides some images files in a subdirectory  'img'.
So, in EXTRA_DIST, we have added:

$(wildcard $(srcdir)/img/*.*)

automake reports that warning:

doc/Makefile.am:35: wildcard $(srcdir: non-POSIX variable name
doc/Makefile.am:35: (probably a GNU make extension)

what is the correct way to add all the files, without listing them all
in EXTA_DIST ?


I would add $(srcdir)/img in EXTRA_DIST and then remove unwanted files with a dist-hook rule. But it sounds a bit fragile to me.

Cheers,
Peter

Reply via email to