|Nokia nmake 16||MAMDEP(1)|
mamdep, mamdag, mamdot, mamdt − translate MAM ouput to specified formats
mamdep | mamdag | mamdot | mamdt [ −a "shell_pattern" −t "shell_pattern" ]
mamdag, mamdot and mamdt translate nmake MAM output to formats compatible with dag(1), dot(1), and dt(1), respectively. mamdep translates MAM output to a simple textual format indicating both the depth and the name of each atom. All MAM output translators take a mamfile as input, and output the supplied data in an acceptable format for each tool. In addition to basic conversion, all translators also support the capability to filter specific portions of the build hierarchy based on command-line options, which allow an arbitrary ksh(1) pattern.
The −a option indicates that atoms matching the given shell pattern, along with the direct descendents of each matched atom, should be ignored. The −t option indicates that all atoms with attributes matching the given shell pattern, along with the direct descendents of each matched atom, should be ignored. For example,
mamdep -a"*.m[os]" -t"implicit*" < mamoutput
processes the MAM output file mamoutput, ignoring all atoms ending in .mo or .ms, along with atoms having the implicit attribute, and prints the results on standard output. If an atom is ignored based on a user-specified pattern, the entire subtree based on that atom is also ignored.
MAM output files can be generated with the nmake −M command line option. For use with the mam translators, dynamic mode mam output will list the set of atom dependencies associated with a given build.
The following example illustrates the usage of a mam translator command.
$ nmake -x -Mdynamic:mamfile::/ + cc -O -I- -c hello.c + cc -O -o hello hello.o
The above call to nmake uses dynamic mam mode to generate mam output to file mamfile. The ‘‘/’’ specification in the mam option specifies that files listed are relative to the root directory, implying full directory listing. This specification can be combined with the −x (expandview) option to generate full directory paths in the mam output.
$ mamdag <mamfile >mamdag.out
The above call translates the mam output file to a format suitable for use with dag(1).
nmake User’s Guide
nmake Reference Manual
nmake Web Site
|nmake 16||June 2014||MAMDEP(1)|