[HACKERS] 'out of tree' compile (was: Two weeks to feature freeze)

2003-06-27 Thread Manfred Koizar
On Thu, 26 Jun 2003 22:55:45 -0400, Tom Lane [EMAIL PROTECTED]
wrote:
 I've not tried, but if PostgreSQL can do an 'out of tree' compile it
 could make it much easier.

Yes it can, following the usual procedure for autoconfiscated trees:
just invoke configure from an empty directory, eg
   mkdir build
   cd build
   ../pgsql/configure

I do this all the time.  Works pretty well.  The only minor annoyance
is that some files are created in the source tree:

./src/backend/bootstrap/bootparse.c
./src/backend/bootstrap/bootscanner.c
./src/backend/bootstrap/bootstrap_tokens.h
./src/backend/parser/gram.c
./src/backend/parser/parse.h
./src/backend/parser/scan.c
./src/backend/utils/misc/guc-file.c
./src/bin/psql/sql_help.h
./src/interfaces/ecpg/preproc/pgc.c
./src/interfaces/ecpg/preproc/preproc.c
./src/interfaces/ecpg/preproc/preproc.h
./src/pl/plpgsql/src/pl.tab.h
./src/pl/plpgsql/src/pl_gram.c
./src/pl/plpgsql/src/pl_scan.c

This didn't itch enough to make me scratch ;-)

Servus
 Manfred

---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send unregister YourEmailAddressHere to [EMAIL PROTECTED])


Re: [HACKERS] 'out of tree' compile (was: Two weeks to feature freeze)

2003-06-27 Thread Tom Lane
Manfred Koizar [EMAIL PROTECTED] writes:
 I do this all the time.  Works pretty well.  The only minor annoyance
 is that some files are created in the source tree:

Yeah, that's deliberate: those files are shipped in distribution
tarballs (so that tarball users don't have to have bison/flex/perl
to build from a source tarball).  So they need to be made in the
source tree.  Since they are platform-independent this isn't any
big problem for the normal uses of out-of-tree building.  You could
get rid of them I believe by doing a make maintainer-clean, but
for testing purposes I suspect that's just a waste of cycles.  When
the underlying files haven't changed, there's no reason to regenerate
these files.

regards, tom lane

---(end of broadcast)---
TIP 6: Have you searched our list archives?

   http://archives.postgresql.org