I\'m using a makefile to compile a program made of many .c
files, and any time make
is invoked it only compiles those files modified after the last run
Instead of using "@gcc" to compile, you can omit that "@" and pass the "-s" option to your make command instead. (Leave "@echo" as it is.) Then "make -s" would be your brief make command, and "make" would be verbose.
The ‘-s’ or ‘--silent’ flag to make prevents all echoing, as if all recipes started with ‘@’.
From the GNU Make manual pages
(The other answers better answer your question, but this approach deserves a mention.)