Makefile contains rules
In general, a rule looks like this:
targets : prerequisites
recipe
...
|
Your third question was about the command line synopsis. Some parts are optional, and shown in brackets.
You could just run:
If the current working directory has a file named "Makefile", then make assumes it is such and interprets its rules. It will follow do the default target, i.e. the first target; the first rule.
If you have multiple rules, i.e. targets, you can ask for specific. For example, you could have a later target named "clean" and its commands would execute, if you do:
You must have been reading the manual of make and it does list some options. They are optional; learn what they do and use them when needed.
A rule can list prerequisites. Those are other targets that this target depends on. They will be done first, unless they are already up to date. In other words, this target depends on those other targets.