Unix and Linux Discussions Tagged with makefile |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
15,453 |
Programming |
|
|
|
7 |
23,727 |
Programming |
|
|
|
5 |
3,316 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
4,039 |
Shell Programming and Scripting |
|
|
|
0 |
3,300 |
Programming |
|
|
|
5 |
3,704 |
Programming |
|
|
|
0 |
2,988 |
Solaris |
|
|
|
0 |
1,876 |
Programming |
|
|
|
11 |
6,458 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
6,862 |
Shell Programming and Scripting |
|
|
|
1 |
2,045 |
Programming |
|
|
|
0 |
1,425 |
Shell Programming and Scripting |
|
|
|
0 |
9,100 |
Programming |
|
|
|
1 |
3,897 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
5,928 |
Shell Programming and Scripting |
|
|
|
4 |
3,283 |
Linux |
|
|
|
5 |
5,237 |
Shell Programming and Scripting |
|
|
|
3 |
26,605 |
Shell Programming and Scripting |
|
|
|
7 |
3,745 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,648 |
Programming |
|
|
|
1 |
1,954 |
Shell Programming and Scripting |
|
|
|
8 |
9,307 |
Homework & Coursework Questions |
|
|
|
1 |
1,846 |
Shell Programming and Scripting |
|
|
|
1 |
27,323 |
Shell Programming and Scripting |
|
|
|
1 |
2,578 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,083 |
Shell Programming and Scripting |
|
|
|
1 |
11,123 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,504 |
Homework & Coursework Questions |
|
|
|
4 |
3,558 |
Solaris |
|
|
|
6 |
31,545 |
Programming |
|
|
|
8 |
7,480 |
Cybersecurity |
|
|
|
3 |
5,159 |
Shell Programming and Scripting |
|
|
|
2 |
2,700 |
Shell Programming and Scripting |
|
|
|
2 |
2,744 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,679 |
Emergency UNIX and Linux Support |
|
|
|
3 |
15,359 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
1,889 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
8,136 |
Solaris |
|
|
|
8 |
3,817 |
Programming |
|
|
|
9 |
8,842 |
Shell Programming and Scripting |
md(1) BSD General Commands Manual md(1)
NAME
md -- process raw dependency files produced by cpp -MD
SYNOPSIS
md [-d] [-f] [-m makefile] [-u makefile] [-o outputfile] [-v] [-x] [-D c|d|m|o|t|D]
DESCRIPTION
The md command basically does two things:
Process the raw dependency files produced by the cpp -MD option. There is one line in the file for every #include encountered, but there are
repeats and patterns like .../dir1/../dir2 that appear which should reduce to .../dir2. md canonicalizes and flushes repeats from the depen-
dency list. It also sorts the file names and "fills" them to a 78 character line.
md also updates the makefile directly with the dependency information, so the .d file can be thrown away (see d option). This is done to
save space. md assumes that dependency information in the makefile is sorted by .o file name and it procedes to merge in (add/or replace [as
appropriate]) the new dependency lines that it has generated. For time efficiency, md assumes that any .d files it is given that were cre-
ated before the creation date of the "makefile" were processed already. It ignores them unless the force flag [f] is given.
FLAG SUMMARY
-D c|D|d|m|o|t
Specify debugging option(s):
c show file contents
D show very low level debugging
d show new dependency crunching
m show generation of makefile
o show files being opened
t show time comparisons
-d Delete the .d file after it is processed
-f Force an update of the dependencies in the makefile, even if the makefile is more recent than the .n file. (This implies that md has
been run already.)
-m makefile
Specify the makefile to be upgraded. The defaults are makefile and then Makefile.
-o outputfile
Specify an output file (other than a makefile) for the dependencies.
-u makefile
Like -m, but the file will be created if necessary.
-v Set the verbose flag.
-x Expunge old dependency information from the makefile.
SEE ALSO
make(1)
BUGS
Old, possibly not used by anyone.
HISTORY
The md utility was written by Robert V. Baron at Carnegie-Mellon University.
BSD
June 2, 2019 BSD