[Top][All Lists]

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

Re: Help copying & renaming filename inside makefile.

From: givemecode
Subject: Re: Help copying & renaming filename inside makefile.
Date: Tue, 11 Jan 2011 08:05:40 -0800 (PST)

Greg Chicares-2 wrote:
> On 2011-01-11 14:51Z, givemecode wrote:
>>> HEADER += $(patsubst %.h,%.hh,$(widlcard $(INCLUDE_DIR)/%.h))
>>                                    ^^                    ^
>> I tried putting that line in my makefile and it doesn't seem to create a
>> list that I need (probably operator error).
> The third and fourth letters of 'wildcard' were accidentally swapped,
> and its argument should have '*' instead of '%':
>   HEADER += $(patsubst %.h,%.hh,$(wildcard $(INCLUDE_DIR)/*.h))
> _______________________________________________
> Help-make mailing list
> address@hidden

Sorry. I fixed it in my code (wildcard was spelled correctly) and it still
didn't work. The headers when included in the C source files aren't found
and compilation crashes. However, when I list all the headers one by one in
the original list, everything is OK. Please help. thanks

View this message in context:
Sent from the Gnu - Make - Help mailing list archive at

reply via email to

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