Re: [HACKERS] New psql compile problem.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] New psql compile problem.
Дата
Msg-id 3624.941936973@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] New psql compile problem.  (Keith Parks <emkxp01@mtcc.demon.co.uk>)
Список pgsql-hackers
Keith Parks <emkxp01@mtcc.demon.co.uk> writes:
>>> make[2]: *** No rule to make target `../../../doc/src/sgml/ref/*.sgml', 
>>> needed 
>>> by `sql_help.h'.  Stop.
>>> make[2]: Leaving directory `/export/home/pgsql/src/bin/psql'

>> Do you have sgml files in that directory?  You should.

> Plenty of them...
>
> It seems a strange sort of dependancy though, with a '*', sort
> of saying we're dependant on anything that happens to be in the
> directory. Not the usual sort of thing you see in makefiles.

But it's just the right thing in this case, since Peter doesn't want
psql to be dependent on exactly what set of ref .sgml files there are.

This makefile coding does depend on wildcard expansion in dependency
lists, which is a GNU-make ism that probably doesn't get a lot of
testing.  What version of make are you running?

It might be worth changing the rule to use explicit wildcard expansion,

sql_help.h: $(wildcard ../../../doc/src/sgml/ref/*.sgml) create_help.pl

in case some versions of make need that extra cue to do the right thing...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Keith Parks
Дата:
Сообщение: Re: [HACKERS] New psql compile problem.
Следующее
От: Ryan Kirkpatrick
Дата:
Сообщение: PostgreSQL 6.5.3 Linux/Alpha Update