Heat ghee in a large pan and add clove, cardamom, cinnamon, star anise, and fennel seeds. Add onion and saute till it becomes golden brown. Add ginger and garlic, cook for a few minutes. Add chilli powder, turmeric powder, and gram masala along with little water and saute till oil separates.