Thorsten Glaser wrote:
Dixitur illum ih8mj@fjf.gnu.de scribere...
Such a feature could also be added to GP. In fact, I've thought about it, any it may be faster than doing it with GPC/automake (because GP only takes a quick look at source files, whereas GPC/automake parses them fully).
Hmm, but the pascal compiler is still gpc...
To extract dependencies you don't need a compiler.
But note that even if you use Makefiles, you can still use GP
Our Makefiles look like
--- snip # $Id$
PROG= foo SRCS= foo.pas
.include <bsd.prog.mk> --- snip
which triggers ${PC} ${PFLAGS} -c foo.pas, and linking.
I don't know exactly what it does. My point was that the Makefile should invoke GP unconditionally. Of course, it could explicitly list all dependencies, but it's easier (and won't need amending when dependencies change) to call GP and let it find out when nothing needs to be done.
Frank