string remove1;
string remove2;

void setRemovals()
{
    // always:
        remove1 = "debian/lib" LIBRARY "3 debian/lib" LIBRARY "3-dev "
                    "build-stamp configure-stamp debian/*substvars";

    // unless `minimal':
        remove2 = "*/driver/driver tmp release.yo */tmp */oa */os */o "
                    "*/*.ih.gch";
}

void clean()
{
    setRemovals();

    run("rm -rf " + remove1);

    run("rm -rf " + remove2);

    exit(0);
}
