#!/usr/bin/icmake -qt/tmp/yodl

void main(int argc, list argv)
{
    string arg1;

    if (argc == 1)
    {
        printf("Build what ? Options are:\n"
                "   clean: rm all yodlpost object files\n"
                "   yodl:  construct the Yodl program (in ../bin)\n"
                "\n"
        );
        exit(1);
    }

    arg1 = element(1, argv);
    if (arg1 == "clean")
        system("rm -f builtins.def o/*");
    else if (arg1 == "yodl")
    {
        chdir("..");
        system("build yodl");
    }
    else 
    {
        printf("request `", arg1, "' not available\n");
        exit(1);
    }

    exit(0);
}






