Study of writting Makefile
Don't confine yourself to using makefiles to compile code or create libraries. You can use them to automate any task where there is a sequence of commands that get you from some sort of input file to an output file. A typical "non compiler" use might be calling AWK or sed to process some files, or even generating manual pages. You can automate just about any file manipulation, just as long as make can work out, from the date and time information on the files, which ones have changed.
---- Beginning Linux Programming