"S.D.Mechveliani" wrote:
> Please, who could tell me how to append the *dependencies* for the
> project shown by the below Makefile ? [...]
Using a seperate file (.depend) is cleaner than modyfing the Makefile.
Furthermore, it doesn't intefere with any version control system.
Here's a snippet of what I usually do:
----------------------------------------------------
.PHONY: depend
depend :: $(HS_SRCS)
@$(RM) .depend
@touch .depend
$(HC) -M -optdep-f -optdep.depend $(HC_OPTS) $(HS_SRCS)
# No dependencies? Remove .depend!
@if [ -e .depend -a ! -s .depend ] ; then $(RM) .depend ; fi
-include .depend
----------------------------------------------------
To The Masters of Sources: What about merging hmake into the GHC tree?
SML/NJ has something similar for ages.
Cheers,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne