Behavior
Make is typically used to build executable programs and libraries from source code. Generally though, any process that involves transforming a source file to a target result (by executing arbitrary commands) is applicable to Make. For example, Make could be used to detect a change made to an image file (the source) and the transformation actions might be to convert the file to some specific format, copy the result into a content management system, and then send e-mail to a predefined set of users that the above actions were performed.
Make is invoked with a list of target file names to build as command-line arguments:
make TARGETWithout arguments, Make builds the first target that appears in its makefile, which is traditionally a symbolic "phony" target named all.
Make decides whether a target needs to be regenerated by comparing file modification times. This solves the problem of avoiding the building of files which are already up to date, but it fails when a file changes but its modification time stays in the past. Such changes could be caused by restoring an older version of a source file, or when a network filesystem is a source of files and its clock or timezone is not synchronized with the machine running Make. The user must handle this situation by forcing a complete build. Conversely, if a source file's modification time is in the future, it triggers unnecessary rebuilding, which may inconvenience users.
Read more about this topic: Make (software)
Famous quotes containing the word behavior:
“If you are willing to inconvenience yourself in the name of discipline, the battle is half over. Leave Grandmas early if the children are acting impossible. Depart the ballpark in the sixth inning if youve warned the kids and their behavior is still poor. If we do something like this once, our kids will remember it for a long time.”
—Fred G. Gosman (20th century)
“School success is not predicted by a childs fund of facts or a precocious ability to read as much as by emotional and social measures; being self-assured and interested: knowing what kind of behavior is expected and how to rein in the impulse to misbehave; being able to wait, to follow directions, and to turn to teachers for help; and expressing needs while getting along with other children.”
—Daniel Goleman (20th century)
“Gaining a better understanding of how childrens minds work at different ages will allow you to make more sense of their behaviors. With this understanding come decreased stress and increased pleasure from being a parent. It lessens the frustrations that come from expecting things that a child simply cannot do or from incorrectly interpreting a childs behavior in adult terms.”
—Lawrence Kutner (20th century)