check whether to pull or clone repo before make