nitdoc: Do the same job for each modules linked to a program

Signed-off-by: Stefan Lage <lagestfan@gmail.com>