Make

From miki
Revision as of 20:54, 29 September 2011 by Mip (talk | contribs) (Created page with '<tt>make</tt> is an utility that determines automatically which pieces of a program need to be recompiled, and issues the commands to rebuild them. <tt>make</tt> uses a file call…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

make is an utility that determines automatically which pieces of a program need to be recompiled, and issues the commands to rebuild them. make uses a file called Makefile, which describes the relationships among files in the program.

Essential Tips

Use TABS to prefix commands in rules, *NOT* SPACES
Each rule in a makefile gives the set of commands that must be executed to build a given target from a given set of dependencies. These commands MUST be indented with a TAB character, not with SPACES. So make sure that the editor does not automatically change these tabs into spaces.