Furthermore, it helps you to avoid errors in
typing all the complicated commands to build an application; instead, you just type one or two
make commands. Use this section to familiarize yourself with the look and layout of makefiles.
For all but the simplest software projects, make is essential. In the first place, projects composed of
multiple source files require long, complex compiler invocations. make simplifies this by storing
these difficult command lines in the makefile, a text file that contains all of the commands required
to build software projects.
make is convenient for both the developer and the users who want to build a program. As developers
make changes to a program, whether to add new features or incorporate bug fixes, make makes
it possible to rebuild the program with a single, short command. make is convenient for users
because they don??™t have to read reams of documentation explaining in excruciating, mind-numbing
detail how to build a program. Rather, they can simply be told to type make followed by make
test followed by make install. Most users appreciate the convenience of simple build instructions.
Finally, make speeds up the edit-compile-debug process. It minimizes rebuild times because it is
smart enough to determine which files have changed, and recompiles only files that have changed.
Pages:
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422