I think this is not a bug, but a feature.
The idea is that the target name would be cleanMyTarget for example.
I think that you if pass "make clean MyTartet" the result will be that both clean and MyTarget would be executed by make and this is different from executing cleanMyTarget.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
BTW, in Project build options -> Custom variables there is another $$ pair. I don't know if it is correct or not. EDIT: $() and $$() work, may be the tip should say $() in order to maintain coherency, as $$() does not work at least in one case.
Also, in the same window the default value for the Clean project/target TextCtrl lacks a space between clean and $target.
The attached patch should fix both issues,
I think this is not a bug, but a feature.
The idea is that the target name would be cleanMyTarget for example.
I think that you if pass "make clean MyTartet" the result will be that both clean and MyTarget would be executed by make and this is different from executing cleanMyTarget.
Sorry, time for me to revisit makefiles. I have removed that part from the patch and added the correction related to headkase comments in
http://forums.codeblocks.org/index.php/topic,22660.0.html
BTW, in Project build options -> Custom variables there is another $$ pair. I don't know if it is correct or not. EDIT: $() and $$() work, may be the tip should say $() in order to maintain coherency, as $$() does not work at least in one case.
Last edit: Miguel Gimenez 2018-05-22
This patch changes the three references to $$ to a single $