Re: pgsql/src/backend/parser (Makefile) - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql/src/backend/parser (Makefile)
Date
Msg-id Pine.LNX.4.21.0007152344470.379-100000@localhost.localdomain
Whole thread Raw
In response to Re: pgsql/src/backend/parser (Makefile)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql/src/backend/parser (Makefile)
List 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@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


pgsql-committers by date:

Previous
From: Peter Eisentraut - PostgreSQL
Date:
Subject: pgsql/doc/src/sgml (client-auth.sgml config.sgml runtime.sgml)
Next
From: Peter Eisentraut - PostgreSQL
Date:
Subject: pgsql/doc (README.fsync)