[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wildcard and Java class files
From: |
Ken Smith |
Subject: |
Re: Wildcard and Java class files |
Date: |
Mon, 22 Aug 2005 10:47:27 -0400 |
User-agent: |
Mutt/1.5.10i |
On Mon, Aug 22, 2005 at 03:38:51AM +0000, address@hidden wrote:
> Hello,
>
> I was playing around with Ken Smith's function for recursively listing files
> found at:
>
> http://lists.gnu.org/archive/html/help-make/2005-08/msg00027.html
>
> find = \
> $(strip \
> $(eval these-files := $(wildcard $(addsuffix /*,$(strip $(1))))) \
> $(these-files) \
> $(if $(strip $(these-files)),$(call find,$(these-files))) \
> )
>
> when I noticed that certain filenames were being shortened. The culprit seems
> to be filenames containing a '$' (such as Java class files with inner
> classes).
> It would appear that gmake is trying to expand the filename after the call to
> wildcard.
>
> Is there an easy way to get around this?
I think this modification does the trick to solve this particular
problem.
find = \
$(strip \
$(eval these-files := $(subst $$,$$$$,$(wildcard $(addsuffix /*,$(strip
$(1)))))) \
$(these-files) \
$(if $(strip $(these-files)),$(call find,$(these-files))) \
)
Ken