Chapter 9: How to Run make 101
install Copy the executable file into a directory that users typically search for com-
mands; copy any auxiliary files that the executable uses into the directories
where it will look for them.
print Print listings of the source files that have changed.
tar Create a tar file of the source files.
shar Create a shell archive (shar file) of the source files.
dist Create a distribution file of the source files. This might be a tar file, or a shar
file, or a compressed version of one of the above, or even more than one of the
above.
TAGS Update a tags table for this program.
check
test Perform self tests on the program this makefile builds.
9.3 Instead of Executing Recipes
The makefile tells make how to tell whether a target is up to date, and how to update each
target. But updating the targets is not always what you want. Certain options specify
other activities for make.
‘-n’
‘--just-print’
‘--dry-run’
‘--recon’
“No-op”. Causes make to print the recipes that are needed to make the targets
up to date, but not actually execute them. Note that some recipes are still
executed, even with this flag (see Section 5.7.1 [How the MAKE Variable Works],
page 51). Also any recipes needed to update included makefiles are still executed
(see Section 3.5 [How Makefiles Are Remade], page 14).
‘-t’
‘--touch’
“Touch”. Marks targets as up to date without actually changing them. In
other words, make pretends to update the targets but does not really change
their contents; instead only their modified times are updated.
‘-q’
‘--question’
“Question”. Silently check whether the targets are up to date, but do not
execute recipes; the exit code shows whether any updates are needed.
‘-W file’
‘--what-if=file’
‘--assume-new=file’
‘--new-file=file’
“What if”. Each ‘-W’ flag is followed by a file name. The given files’ modification
times are recorded by make as being the present time, although the actual
Comentários a estes Manuais