Make build task smarter.