Lines 84-95
Link Here
|
84 |
#define USAGE \ |
85 |
#define USAGE \ |
85 |
"Usage:\n%s [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!][[*][+][:]]=value ...]\n" |
86 |
"Usage:\n%s [-P#] [-{f|K} file] [-{w|W} target ...] [macro[!][[*][+][:]]=value ...]\n" |
86 |
#define USAGE2 \ |
87 |
#define USAGE2 \ |
87 |
"%s [-v{cdfimrtw}] [-ABcdeEghiknpqrsStTuVxX] [target ...]\n" |
88 |
"%s [-v[cdfimrtw]] [-m[trae]] [-ABcdeEghiknpqrsStTuVxX] [target ...]\n" |
88 |
#else |
89 |
#else |
89 |
#define USAGE \ |
90 |
#define USAGE \ |
90 |
"Usage:\n%s [-P#] [-{f|C|K} file] [-{w|W} target ...] [macro[!][[*][+][:]]=value ...]\n" |
91 |
"Usage:\n%s [-P#] [-{f|C|K} file] [-{w|W} target ...] [macro[!][[*][+][:]]=value ...]\n" |
91 |
#define USAGE2 \ |
92 |
#define USAGE2 \ |
92 |
"%s [-v{cdfimrtw}] [-ABcdeEghiknpqrsStTuVxX] [target ...]\n" |
93 |
"%s [-v[cdfimrtw]] [-m[trae]] [-ABcdeEghiknpqrsStTuVxX] [target ...]\n" |
93 |
#endif |
94 |
#endif |
94 |
|
95 |
|
95 |
/* We don't use va_end at all, so define it out so that it doesn't produce |
96 |
/* We don't use va_end at all, so define it out so that it doesn't produce |
Lines 174-179
Link Here
|
174 |
stdout_redir = NIL(FILE); |
175 |
stdout_redir = NIL(FILE); |
175 |
|
176 |
|
176 |
Verbose = V_NOFLAG; |
177 |
Verbose = V_NOFLAG; |
|
|
178 |
Measure = M_NOFLAG; |
177 |
Transitive = TRUE; |
179 |
Transitive = TRUE; |
178 |
Nest_level = 0; |
180 |
Nest_level = 0; |
179 |
Line_number = 0; |
181 |
Line_number = 0; |
Lines 283-288
Link Here
|
283 |
} |
285 |
} |
284 |
break; |
286 |
break; |
285 |
|
287 |
|
|
|
288 |
case 'm': |
289 |
if( p[-1] != '-' ) Usage(TRUE); |
290 |
while( p[1] ) switch( *++p ) { |
291 |
case 't': Measure |= M_TARGET; break; |
292 |
case 'r': Measure |= M_RECIPE; break; |
293 |
case 'a': Measure |= M_ABSPATH; break; |
294 |
case 'e': Measure |= M_SHELLESC; break; |
295 |
|
296 |
default: Usage(TRUE); break; |
297 |
} |
298 |
if( !Measure ) Measure = M_TARGET; |
299 |
break; |
300 |
|
286 |
case 'P': |
301 |
case 'P': |
287 |
if( p[1] ) { |
302 |
if( p[1] ) { |
288 |
Def_macro( "MAXPROCESS", p+1, M_MULTI|M_EXPANDED ); |
303 |
Def_macro( "MAXPROCESS", p+1, M_MULTI|M_EXPANDED ); |
Lines 799-805
Link Here
|
799 |
puts(" -K file - use file as the .KEEP_STATE file"); |
814 |
puts(" -K file - use file as the .KEEP_STATE file"); |
800 |
puts(" -w target - show what you would do if 'target' were out of date"); |
815 |
puts(" -w target - show what you would do if 'target' were out of date"); |
801 |
puts(" -W target - rebuild pretending that 'target' is out of date"); |
816 |
puts(" -W target - rebuild pretending that 'target' is out of date"); |
802 |
puts(" -v{cdfimrtw} - verbose, indicate what we are doing, (-v => -vcdfimrtw)"); |
817 |
puts(" -v[cdfimrtw] - verbose, indicate what we are doing, (-v => -vcdfimrtw)"); |
803 |
puts(" c => dump directory cache info only" ); |
818 |
puts(" c => dump directory cache info only" ); |
804 |
puts(" d => dump change of directory info only" ); |
819 |
puts(" d => dump change of directory info only" ); |
805 |
puts(" f => dump file open/close info only" ); |
820 |
puts(" f => dump file open/close info only" ); |
Lines 809-814
Link Here
|
809 |
puts(" overrides -s" ); |
824 |
puts(" overrides -s" ); |
810 |
puts(" t => keep temporary files when done" ); |
825 |
puts(" t => keep temporary files when done" ); |
811 |
puts(" w => issue non-essential warnings\n" ); |
826 |
puts(" w => issue non-essential warnings\n" ); |
|
|
827 |
|
828 |
puts(" -m[trae] - Measure timing information, (-m => -mt)"); |
829 |
puts(" t => display the start and end time of each target" ); |
830 |
puts(" r => display the start and end time of each recipe" ); |
831 |
puts(" a => display the target as an absolute path" ); |
832 |
puts(" e => display the timing of shell escape macros\n" ); |
812 |
|
833 |
|
813 |
puts("Options: (can be catenated, ie -irn == -i -r -n)"); |
834 |
puts("Options: (can be catenated, ie -irn == -i -r -n)"); |
814 |
puts(" -A - enable AUGMAKE special target mapping"); |
835 |
puts(" -A - enable AUGMAKE special target mapping"); |