Unix and Linux Discussions Tagged with makefile |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
11,405 |
Programming |
|
|
|
7 |
16,258 |
Programming |
|
|
|
5 |
2,653 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,420 |
Shell Programming and Scripting |
|
|
|
0 |
2,825 |
Programming |
|
|
|
5 |
2,820 |
Programming |
|
|
|
0 |
2,203 |
Solaris |
|
|
|
0 |
1,478 |
Programming |
|
|
|
11 |
5,353 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
5,926 |
Shell Programming and Scripting |
|
|
|
1 |
1,581 |
Programming |
|
|
|
0 |
1,274 |
Shell Programming and Scripting |
|
|
|
0 |
8,500 |
Programming |
|
|
|
1 |
3,307 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,946 |
Shell Programming and Scripting |
|
|
|
4 |
2,790 |
Linux |
|
|
|
5 |
3,988 |
Shell Programming and Scripting |
|
|
|
3 |
25,839 |
Shell Programming and Scripting |
|
|
|
7 |
2,822 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,274 |
Programming |
|
|
|
1 |
1,702 |
Shell Programming and Scripting |
|
|
|
8 |
8,521 |
Homework & Coursework Questions |
|
|
|
1 |
1,544 |
Shell Programming and Scripting |
|
|
|
1 |
26,465 |
Shell Programming and Scripting |
|
|
|
1 |
2,318 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,592 |
Shell Programming and Scripting |
|
|
|
1 |
10,179 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,858 |
Homework & Coursework Questions |
|
|
|
4 |
3,142 |
Solaris |
|
|
|
6 |
31,117 |
Programming |
|
|
|
8 |
6,951 |
Cybersecurity |
|
|
|
3 |
4,854 |
Shell Programming and Scripting |
|
|
|
2 |
2,263 |
Shell Programming and Scripting |
|
|
|
2 |
2,483 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,209 |
Emergency UNIX and Linux Support |
|
|
|
3 |
14,739 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
1,746 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,835 |
Solaris |
|
|
|
8 |
3,487 |
Programming |
|
|
|
9 |
8,417 |
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 effeciency, 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 delete the .d file after it is processed
-f force an update of the dependencies in the makefile even though 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
-u makefile like -m above, but the file will be created if necessary
-o outputfile specify an output file for the dependencies other than a makefile
-v set the verbose flag
-x expunge old dependency info from makefile
-D c|d|m|o|t|D subswitch for debugging. can be followed by any of "c", "d", "m", "o", "t", "D" meaning:
c show file contents
d show new dependency crunching
m show generation of makefile
o show files being opened
t show time comparisons
D show very low level debugging
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