Preheat the oven to 180°C.
Drizzle some of the oil on a large baking tray. Cut the aubergines into rounds
3–4mm thick and place on the oiled tray. Drizzle over the remaining oil and
season with the salt. Roast in the oven for 35–40 minutes, turning halfway
through, until golden brown. Add a little more oil if they look too dry.
To make the sauce, place the red pepper and tomatoes on a small baking tray
and roast whole for 35–40 minutes, turning the pepper halfway through
the roasting time, until the skins are charred. Place the pepper and tomatoes
in a sealed container until they’re cool enough to handle, then peel and chop
them. Add them back to the container along with all their liquid.
Heat the oil in a medium saucepan over a medium heat. Add the onion and fry until soft. Add the grated carrot, garlic, ras el hanout and paprika and fry for 1–2 minutes. Add the remaining ingredients along with the reserved liquid from the pepper and tomatoes. Reduce the heat to low and cook for 10 minutes, until the sauce has thickened, adding a little water if needed.
Add a layer of aubergine slices to the bottom of a deep baking dish (a lasagna dish works perfectly), then pour over half of the sauce. Add another layer of aubergine slices and finish with the remaining sauce on top.
Bake in the oven for 40 minutes. Serve with rice or bulgur wheat.