e8e
Avoiding Recompilation of Some Files
If you anticipate the problem before changing the header file, you can use the
‘
Use the following procedure.
If you have already changed the header file at a time when some files do need
recompilation, it is too late to do this. Instead, you can use the ‘
Use the following procedure.
Use the command, ‘make’, to recompile the source files that really need recompilation
Make the changes in the header files.
Use the command, ‘make -t’, to mark all the object files as up to date. The next time you run make, the changes in the header files will not cause any recompilation.
Recompile the source files that need compilation for reasons independent of
the particular header file, with ‘make -o headerfile’. If several header files are involved, use a separate ‘-o’ option for each header file.
Touch all the object files with ‘make -t’.