Re: pgsql/src/backend/parser (Makefile)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Thomas Lockhart <thomas(at)hub(dot)org>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql/src/backend/parser (Makefile)
Date: 2000-07-16 14:46:17
Message-ID: Pine.LNX.4.21.0007152344470.379-100000@localhost.localdomain
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tom Lane writes:

> Was it a symlink already? I thought I recalled it being a hard link or
> a copy.

We're moving ahead fast. :)

> There might also be a dependency issue, ie does make realize that
> updating backend/parser/parse.h means it has to recompile files
> that are shown as depending on include/parser/parse.h.

It seems to be a stat() vs lstat() issue; the symlink is automatically
up-to-date because when make inspects it it will find the timestamp of the
underlying file. So the answer to your question seems to be yes.

$ ls
Makefile
$ cat Makefile
first: second
touch $@

second: third
ln -s $< $@
$ touch third
$ make
ln -s third second
touch first
$ touch third
$ make
touch first

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2000-07-16 14:47:57 pgsql/doc (README.fsync)
Previous Message Peter Eisentraut - PostgreSQL 2000-07-15 21:35:48 pgsql/doc/src/sgml (client-auth.sgml config.sgml runtime.sgml)