build static automatic