Automatically Generating Numerous Context-Driven SFT Data for LLMs across Diverse Granularity