All ASTERIX directories can contain sub-directories. The list of such directories is defined by the token SUBDIRS. The order specified in this token is the order in which the sub-directories are built and installed -- these operations take place before the build and install phases of the directory which is the container. The SUBDIRS token defines another token called REV_SUBDIRS, which is the order in which sub-directories are unbuilt and deinstalled.
A useful target supported by all ASTERIX directory classes is the
showtree
target. This recursively displays the names of all the
directories in the SUBDIRS list, and all their sub-directories,
and so on until a directory is reached which has no sub-directories. The
output looks something like,
% cd $AST_ROOT % mk showtree dev/ etc scripts kernel/ hed/ scripts lib/ etc inc scripts util/ scripts .... rosat/ scripts