make: Don't add prebuild/postbuild targets if there are no commands