keeping farmers in business and improving local economy is more important in the long run. Without robust economy these will be a bunch of dependent beggars forever. Feel free to donate/invest in their infrastructure, know-how, tech level and what not but never give them finished products for free - it fortifies the position of already established players from developed countries and prevents the birth of successful local competition.
Let's say there are 1000 starving people. you give them free food from foreign aid. They now multiply like rabbits (that is their current strategy of survival, the difference is they don't die now) and soon go back to starving. Foreign aid has to be bigger to compensate. You raise the ceiling to 10k, 100k, 1M - the bar goes every time the population reaches the capacity of its environment.
You had 1000 starving people, now you have million and you might think the world can support this situation indefinitely. That's a very risky assumption. Let's say huge huge economic downturn happens and people in the West don't feel rich enough to blow money and food on Africa, because they have their own poor and unemployed to take care of. Suddenly all that artificial support for millions of people vanishes and you have mass starvation so harsh the initial state seems like a child play in comparison.
People need to face the basic fact that starvation is a nature's way to signal overpopulation relative to what the ecological niche can bear. Granted, you can cheat it with external support but only so long (most organisms follow exponential growth until they hit the hard wall of environmental limitations and africans are no different here). You need to ask yourself, how long you want to subsidize people so they can have their unrestricted e^x growth. You *will* run out of resources and even the idea of not increasing aid at some point will be disastrous, not to mention withdrawing it completely.
This is a perfect example why bleeding heart do-gooders need to be smacked upside the head every time they want to fix the world - the road to hell is indeed paved with good intentions. They should first prove they have a grasp of possible consequences before being allowed to act. Policy based on feelings invoked by sad pictures of little black people with flies all over them does no favors to anybody, well maybe except local elites who sell the aid food on the black market and UN bureaucrats who can justify their existence.