> Well, fpmake contains the dependencies of the units. > Therefor you should be able to place the units in the correct order. > So my idea would be to enforce the order by looking at the dependencies. > > All that is needed is to list the units that should be documented; > The engine can then look in the list of dependencies, and if there > are dependencies found, they can be added first.
I suppose it should look like this then: T := P.Targets.AddFPDoc('input.pas', 'descr.xml'); T.Dependencies.Add('myunit1.pas'); T.Dependencies.Add('myunit2.pas'); Will generate the following command; fpdoc --input=myunit1.pas --input=myunit2.pas --input=input.pas --descr=descr.xml Did I understand it correctly? Regards, Darius _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel