How this simple make
script knows that some of cpp files is changed? Does it means that for each .o file it will look for corresponding .cpp one? What if extension will be different - for example .c
hellomake: hellomake.o hellofunc.o
gcc -o hellomake hellomake.o hellofunc.o -I.
UPD:
According to my understanding scrip I provide should not look to c and cpp files. And when I asked to build project second time MAKE
told me "make: 'hellomake' is up to date.
But I was surprised when I have changed hellomake.cpp
MAKE has decided do rebuild project. Why?