Is there any possible way to compile C program in a more efficient manner than running whole command.
gcc -g -Wall file_name.c -o file_name.out
For example to use make command in this way: make argument.c
I want the make command to run this command gcc -g -Wall argument.c -o argument_no_extension.out
I was trying to learn vim but to compile program I have to write down whole command or have to use arrow keys to run it again . But vs-code task.json which have the following arguments:
"gcc","-g", "${relativeFile}", "-o","${fileBasenameNoExtension}.out", "&&", "clear" , "&&" , "./${fileBasenameNoExtension}.out"