首页| 论坛| 消息

标题:make 英文文档
作者:ppking
日期:2005-08-24 11:00
内容:

make Utility
This chapter describes the make utility, which includes:
Hidden dependency checking
Command dependency checking
Pattern-matching rules
Automatic retrieval of SCCS files
This version of the make utility runs successfully with makefiles written for
previous versions of make. Makefiles that rely on enhancements might not be
compatible with other versions of this utility (see Appendix A, “System V make” for
more information on previous versions of make). Refer to “make Enhancements
Summary ” on page 168 for a complete summary of enhancements and compatibility
issues.
make streamlines the process of generating and maintaining object files and
executable programs. It helps compile programs consistently and eliminates
unnecessary recompilation of modules that are unaffected by source code changes.
make provides features that simplify compilations. You can also use it to automate
any complicated or repetitive task that is not interactive. You can use make to update
and maintain object libraries, to run test suites, and to install files onto a file system
or tape. In conjunction with SCCS, you can use make to ensure that a large software
project is built from the desired versions in an entire hierarchy of source files.
make reads a file that you create, called a makefile, which contains information about
what files to build and how to build them. After you write and test the makefile,
you can forget about the processing details; make takes care of them.
Dependency Checking: make vs. Shell
Scripts
While it is possible to use a shell script to assure consistency in trivial cases, scripts
to build software projects are often inadequate. On the one hand, you don’t want to
wait for a simple minded script to compile every single program or object module
when only one of them has changed. On the other hand, having to edit the script for
each iteration can defeat the goal of consistency. Although it is possible to write a
scr ..

回复 发表
主题 版块