Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2005 13:58:34 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        Warner Losh <imp@bsdimp.com>
Subject:   Re: cvs commit: src/usr.sbin/config main.c
Message-ID:  <94969eabff134918730e7dcead17bb51@xcllnt.net>
In-Reply-To: <20050422203437.GB50191@ip.net.ua>
References:  <20050422.114615.71130404.imp@bsdimp.com> <20050422175324.GA32739@ip.net.ua> <20050422184922.GA41457@ns1.xcllnt.net> <20050422.125712.78748765.imp@bsdimp.com> <20050422200341.GA23926@ip.net.ua> <1b042838f6396ae9665fcb2f41f1c9a7@xcllnt.net> <20050422201615.GD23926@ip.net.ua> <b01a40ad14d2fadd7fa857af2495dfdd@xcllnt.net> <20050422203437.GB50191@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 22, 2005, at 1:34 PM, Ruslan Ermilov wrote:

>>> I personally fail to see how this can be solved...  :-(
>>
>> Ok, what about this:
>> mkdep(1) creates lines of the form
>>
>> 	foo.o: foo.c inc1.h inc2.h
>>
>> Would this problem be solved if mkdep(1) created lines like:
>>
>> 	foo.o .depend: foo.c inc1.h inc2.h
>>
>> or equivalent?
>>
>> Would something else break if we do that?
>>
> I fail to see what this gives us, except for also breaking
> "make .depend" when .depend is present and inc2.h disappears.

True, there is a phase ordering problem. But isn't that something
that can be worked around by making the necessary adjustments to
make(1). The adjustments would be that if .depend is out of
date, it is being made without making any sources that are out
of date (or missing). This may require adding a special source
to the mix of special sources that make(1) already has: .SOFTDEP
or something like that. One can also hardcode this special case,
but that seems ugly.

-- 
  Marcel Moolenaar         USPA: A-39004          marcel@xcllnt.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94969eabff134918730e7dcead17bb51>