help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dependencies (newbie - please be gentle :P)


From: Oleksandr Gavenko
Subject: Re: Dependencies (newbie - please be gentle :P)
Date: Mon, 14 Jun 2010 12:26:13 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

On 14.06.2010 11:22, Gary wrote:
This isn't really a question about makedepend, although that is what I
am using to handle include file dependencies.

The issue is that makedepend, unless you specify -f<some file name>  will
put its output in the current makefile, unless I am mistaken. That
creates problems if the makefile is under version control (keeping
generated data under version control isn't a good idea IMO, quite aside
from the case where different users have different path structures for
system include files). So what I wanted to do was use 'makedepend -f
Makefile.dep' and then just 'include' that file. But it doesn't work:
,----
| $ make all
| Makefile:38: Makefile.dep: No such file or directory
| make: *** No rule to make target `Makefile.dep'.  Stop.
`----

I'm not sure. Should I simply create a rule to generate the file? How do
other people deal with this case?

Try adds to your Makefile this:

-include Makefile.dep  # '-' - dont warn if .dep not exist

Makefile.dep:
        makedepend -f Makefile.dep   # how create .dep

--
С уважением, Александр Гавенко.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]