To make the rendang paste, blend the onion, ginger, garlic, chillies, lemongrass and turmeric in a food processor, or pound in a mortar and pestle, until it is fairly smooth.
Fry the coconut in a dry pan, stirring, until it is lightly browned. Set aside.
Return the pan to the heat, add the coconut oil and then cook the beef, stirring often, until all the pieces are well browned. It is a good idea to brown the beef in batches so it doesn’t stew in the pan.
Add the spice paste, desiccated coconut, coconut milk, coconut sugar, salt, lime juice, lime leaves and beef broth or water. Bring to a simmer, then reduce the heat to low and cook for 3 hours, stirring occasionally.
By the end of the cooking time the liquid will be very reduced and rich, and the meat will be extremely tender and succulent. Rendang is quite a dry curry with a rich, thick sauce.
Taste for salt and serve with lime wedges.