    // manualMacroList creates the macros for the man- and manual-pages in
    // the file tmp/wip/macrolist.yo
void manualMacroList()
{
    list raw;
    int idx;

    if (exists("tmp/macrolist-stamp"))
        return;

    chdir("macros/rawmacros");

    raw = makelist("*.raw");

    echo(OFF);
    for (idx = 0; idx < sizeof(raw); idx++)
    {
            // pick the documentation from the raw macros (delimited by the
            // <STARTDOC> and <> tags) and append it to macrolist.yo
        system("./startdoc.pl " + raw[idx] + " >> " 
                                        "../../" + g_wip + "/macrolist.yo");
        printf(".");
    }
    echo(ON);

    chdir(g_cwd);
    printf("\n");
    run("touch tmp/macrolist-stamp");
}

