Home > Back-end >  Makefile. C.o why not first
Makefile. C.o why not first

Time:10-18

Hi:

I just learn a makefile, there is a doubt, this is my makefile

This is my directory structure

This is the top

This is the main folder


When performing the make command, into each folder to perform, in the main makefile, I found this. C.o performed, will perform the following a command, the screenshot is to perform the test, remove the test, leave the main, the top-level directory, execute the make command will get what I want effect,
But I don't understand is, why ". C.o "not file the first instruction? Or, why to run this, and will run a? And only run one,
I wondered, this is different from the test, I did not write a dependency,
SUFFIXES this just set the dependencies, is not because of this,
Ask all of you here. Thank you
  • Related