Lookup "make tutorial" on the net. There are lots of hits. A relatively good one can be found in


http://www.eng.hawaii.edu/Tutor/Make/

Basically makefiles use the following structure

Definitions
Target
Dependencies

The target is the first item to be made that ends with a colon. You can bypass this by providing a command line target.