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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pgsql/src/backend/parser (Makefile)
Дата
Msg-id Pine.LNX.4.21.0007152344470.379-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: pgsql/src/backend/parser (Makefile)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql/src/backend/parser (Makefile)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut - PostgreSQL
Дата:
Сообщение: pgsql/doc/src/sgml (client-auth.sgml config.sgml runtime.sgml)
Следующее
От: Peter Eisentraut - PostgreSQL
Дата:
Сообщение: pgsql/doc (README.fsync)