[Solved] What’s the meaning of default: classes in this makefile?


The meaning of the word “default” is “implicit”, or “that if none is given”. Here in makefiles, it would be if you call

>make

without a goal explicitly stated, then the first target in your makefile (other than ones starting with .) is updated. So it makes sense for the first such target to be called “default”. Yes you can change it to something else if you want to confuse everybody.

However, by convention from the Make manual, the name of the first target is already supposed to be all. So all is better than default which is better than anything else.

Also, “default make target entry” is a poor comment. The proper terminology is “make goal”, and to comment the target which one has named default with “default” is a waste of characters 🙂

solved What’s the meaning of default: classes in this makefile?