Well, maybe you can just program a simple script to do so and call it from geany when pressing build button for example.