void install(string where, int all)
{
    printf("  installing the executable\n");
    md(where + BIN);
    run("cp tmp/bin/* " + where + BIN);

    if (all)
    {
        printf("  installing the manual page xd.1\n");
        md(where + MAN);
        run("gzip -9 < tmp/man/xd.1 > " + 
                                        where + MAN + "/xd.1.gz");

        printf("  installing the manual page xdman.html\n");
        md(where + DOC + "/man");
        run("cp tmp/manhtml/xdman.html " + where + DOC + "/man");
    
        printf("  installing the information directly in and under $DOC\n");
        run("gzip -9 < changelog > " + where + DOC + "/changelog.gz");
    
    }

    printf("  Installation completed\n");

    exit(0);
}




