You have to open the Sanctuary crafting log and under "tools" there's bunch of things you have to craft for the mammets to enable them to craft the granary.