automake
[Top][All Lists]
Advanced

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

Re: using $(wildcard) in EXTRA_DIST


From: Peter Johansson
Subject: Re: using $(wildcard) in EXTRA_DIST
Date: Wed, 19 Sep 2012 16:47:50 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120825 Thunderbird/10.0.7

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

[Prev in Thread] Current Thread [Next in Thread]