MD(8) — UNIX Programmer’s Manual
NAME
md − create makefile dependencies from .d files created by -MD option to cc
SYNOPSIS
md [-f][-D][-m makefile][-o outputfile][-v] file ...
DESCRIPTION
md processes the raw dependency files produced by the cpp -MD option. There is one line in the file for every #include encountered, but repeats and patterns like .../dir1/../dir2 appear which should reduce to .../dir2. Md canonicalizes and flushes repeats from the dependency list. It also sorts the file names and "fills" them to a 78 character line.
Md assumes that dependency information is sorted by .o file name and it procedes to merge in (adding or replacing, as appropriate) the new dependency lines it has generated. For efficiency, md assumes that any .d files it is given that were created before the creation date of the "makefile" were processed already.
The options are:
-f force an update of the dependencies even though the dependency file is more recent than the .d file (This implies that md has been run already.) This is the default.
-D subswitch for debugging. Expert mode.
-m makefile
specifies the dependency file to be upgraded. If -m is not explicitly specified then the dependencies are updated in either makefile or Makefile.
-o <outputfile>
specifies a dependency file to be updated. If this file doesn’t initially exist it is created.
-v set the verbose flag
FILES
Makefile, makefile
HISTORY
09-Oct-86 Robert Baron (rvb) at Carnegie-Mellon University
Created.
NeXT, Inc. — March 24, 1989