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: Gary
Subject: Re: Dependencies (newbie - please be gentle :P)
Date: Tue, 15 Jun 2010 14:10:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (cygwin)

Oleksandr Gavenko writes:
> On 14.06.2010 11:22, Gary wrote:
>> 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

Thanks. Seems like that works, kind of. Apparently half the problem was
that makedepend doesn't like it when Makefile.dep doesn't already exist
(huh? it's supposed to be creating it!). Oh well. I just added a rm and
touch to the Makefile.dep rule.




reply via email to

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