Special dependencies
Usually, make uses the same command to create or update a target,
regardless of which file changes. Some other files, such as libraries
allow users to replace a portion of its code. For this kind of different
behavior, make allows a special form of the dependency, where the
action specified can differ, depending on which file has changed. Here
is an example for this rule:
-
target :: source1
-
command1
-
target :: source2
-
command2
As we have described, if source1 changes, target is created
or updated using command1; command2 is used if
source2
is modified instead.
PreviousNextIndex
Last updated on Wednesday, June 21, 1995 by
Ben
Y. Yoshino
Copyright © 1995 University of Hawai`i, College of Engineering,
Computer Facility
All rights reserved.