Code::Blocks Forums

User forums => Help => Topic started by: gillevk on January 04, 2016, 10:19:16 am

Title: Adding files to a project / using wildcards
Post by: gillevk on January 04, 2016, 10:19:16 am
Hi,

I'm very new to Codeblocks, so this is a newbie question : I would like to add all files with the exact name "Makefile" and "makefile" to my project, and I'm also trying to add them in a separate folder under project tree. No success to do both - I can filter using all wildcards with <something>.* extension. But when trying to filter for no-extension files, codeblocks just won't do what I expect.
What am I doing wrong?
Title: Re: Adding files to a project / using wildcards
Post by: BlueHazzard on January 09, 2016, 12:46:00 pm
This seems indeed to be a bug...
Can you add a ticket on the sf tracker, so it won't get lost? ( http://sourceforge.net/p/codeblocks/tickets/ )


[Edit1]
for me it works.
On the project right click ->Project Tree ->Edit File Types& Ca... -> Add -> "Makefile" as name (is not critical) ->"*" (without "") in the File Masks ->Ok

If you don't do this it will simply be putted in the "Oters" folder

[Edit2]
If you add the files with Project->Add files recursively you have to enable the tick in the dialog that pops up and asks you "Select the files to add to the project"
Title: Re: Adding files to a project / using wildcards
Post by: BlueHazzard on January 09, 2016, 01:04:47 pm
I think i have misunderstood your question. You are talking about the "Select the files to add to the project" and the "Wildcard select" option?

This seems indeed to be a bug...
Can you add a ticket on the sf tracker, so it won't get lost? ( http://sourceforge.net/p/codeblocks/tickets/ )


[Edit1] it works if you input "*makefile*" or "*makefile"