set NAME = $(NAME_PART) // sets a value of user-variable NAME
gcc -o $(NAME).exe $(NAME_PART).c
unset NAME // deletes the user-variable NAME
$(NAME_PART)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
why doesn't this command work?
gcc -o $(NAME_PART).exe $(NAME_PART).c
$(NAME_PART)
Only the first "$(NAME_PART)" is replaced by the filename. So the command is
gcc -o test.exe $(NAME_PART).c if the filename is test.*
How can I solve the problem?
Meanwhile, you can use a work-around:
set NAME = $(NAME_PART) // sets a value of user-variable NAME
gcc -o $(NAME).exe $(NAME_PART).c
unset NAME // deletes the user-variable NAME
$(NAME_PART)
This is a bug. Will be fixed in v.0.2 RC3.