make doesn't see changes in /etc/mail/freebsd.mc

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Jan 28 22:03:42 UTC 2010


On Thu, 28 Jan 2010 16:59:16 +0000, Anton Shterenlikht <mexas at bristol.ac.uk> wrote:
> I've seen this behaviour for years, but never bothered
> to ask why.
>
> Imagine I already have in /etc/mail local .mc and .cf files. Imagine I
> then update freebsd.mc. When I run make nothing happens. What I think
> should happen is that local .mc should be updated and then .cf
> generated.
>
> Because of this behaviour I have to manually delete local .mc files
> and all .cf files before running make.

Or merge your local changes *into* the "local.mc" file.  For example, I
have several dozen lines of local customizations in "HOSTNAME.mc" here:

root at kobe:/etc/mail# diff -u freebsd.mc kobe.mc | diffstat -p1
 kobe.mc |  167
 ++++++++++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 126 insertions(+), 41 deletions(-)

I would be very annoyed if updating freebsd.mc clobbered these :-)



More information about the freebsd-questions mailing list