initial port of GBS scripts to makefiles