Обсуждение: build system

Поиск
Список
Период
Сортировка

build system

От
Karel Zak
Дата:
Small note about build system;
* The ./configure expect for template listing template in "template" dir
but it is "src/template" (see line 132 in configure.in)
* A question, try anyone compile PG after 'make depend'?  It show some warning messages.   And a second question, how
clean'depend' files? It is not posible via  'make clean' or 'make distclean'. Bug or feature?
 
 IMHO is not bad idea use "central clean" via rm -f `find -name "depend"` (or something like this), if I good remember
this"find" method use an example Linux kernel build system.  
 
                    Karel    



Re: build system

От
Peter Eisentraut
Дата:
Karel Zak writes:

>  * The ./configure expect for template listing template in "template" dir
> but it is "src/template" (see line 132 in configure.in)

Noted.

>  * A question, try anyone compile PG after 'make depend'?
>    It show some warning messages. 

Elaborate.

>    And a second question, how clean 'depend' files?

find -name depend | xargs rm

> It is not posible via 'make clean' or 'make distclean'. Bug or feature?

Consequence of other features:

* make clean removes all files created by make all, except those that you want to include in the distribution.

* make distclean removes all files removed by make clean, plus those created by configure

* make maintainer-clean removes all files removed by distclean, as well as those that are in the distribution.

The depend files do not fall into any of these categories. Eventually
we'll generate dependencies automatically as a side-effect of compilation.
At that point they will also fall under the make clean (or
maintainer-clean) category.


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



Re: build system

От
Karel Zak
Дата:
On Thu, 6 Jul 2000, Peter Eisentraut wrote:
> 
> The depend files do not fall into any of these categories. Eventually
> we'll generate dependencies automatically as a side-effect of compilation.
> At that point they will also fall under the make clean (or
> maintainer-clean) category.
If something in build system create some files, I mean that build system
will knows how remove itself this matter. Expect some external 
'find ... | rm' is a little dirty...
                    Karel