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:
“The ease with which problems are understood and solved on paper, in books and magazine articles, is never matched by the reality of the mothers experience. . . . Her childs behavior often does not follow the storybook version. Her own feelings dont match the way she has been told she ought to feel. . . . There is something wrong with either her child or her, she thinks. Either way, she accepts the blame and guilt.”
—Elaine Heffner (20th century)
“The confusion of emotions with behavior causes no end of unnecessary trouble to both adults and children. Behavior can be commanded; emotions cant. An adult can put controls on a childs behaviorat least part of the timebut how do you put controls on what a child feels? An adult can impose controls on his own behaviorif hes grown upbut how does he order what he feels?”
—Leontine Young (20th century)
“The type of fig leaf which each culture employs to cover its social taboos offers a twofold description of its morality. It reveals that certain unacknowledged behavior exists and it suggests the form that such behavior takes.”
—Freda Adler (b. 1934)