support "-debug" and "-clean" flags for all targets in build script