string remove1;
string remove2;
string remove3;

void setRemovals()
{
    // always:
        remove1 = 
            "debian/*substvars* debian/oxref build-stamp configure-stamp";

    // unless `minimal':
        remove2 = "tmp o */o release.yo liboxref.a ";

    // in ./documentation:
        remove3 = "man/*.1 man/*.html";
}

void clean(int dist)
{
    setRemovals();

    run("rm -rf " + remove1);

    run("rm -rf " + remove2);

    chdir("documentation");
    run("rm -rf " + remove3);

    if (dist)
    {
        chdir("..");
        run("rm -rf tmp");
    }

    exit(0);
}




