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
> [email protected]
> 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.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to