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.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to