Detect the changes of files and rebuild the changed files