Check if need to perform "make distclean" when building packages such as libyaml.