help-make
[Top][All Lists]
Advanced

[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
> http://lists.gnu.org/mailman/listinfo/help-make
> 
> 

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: 
http://old.nabble.com/Help-copying---renaming-filename-inside-makefile.-tp30636319p30645010.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.




reply via email to

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