Re: make dist does not work in VPATH - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: make dist does not work in VPATH
Date
Msg-id 200808201855.50455.peter_e@gmx.net
Whole thread Raw
In response to make dist does not work in VPATH  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: make dist does not work in VPATH  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera wrote:
> It seems we're neglecting to copy GNUmakefile into the temporary
> distdir:

> make -C postgresql-8.3.3 distprep
> make[1]: entrant dans le répertoire «
> /home/alvherre/Code/CVS/pgsql/build/83_rel/postgresql-8.3.3 » make[1]: ***
> Pas de règle pour fabriquer la cible « distprep ». Arrêt. make[1]: quittant
> le répertoire « /home/alvherre/Code/CVS/pgsql/build/83_rel/postgresql-8.3.3
> » make: *** [distdir] Erreur 2

Hmm.  When you do an in-tree build, the distdir copy contains a configured 
source tree.  When you do an out-of-tree build, the distdir copy only the 
bare source tree, because the configure output files are in the build tree, 
which is not copied.

Fix option 1 would be to copy the build tree as well, if it is different from 
the source tree.  Since the build tree contains a bunch of symlinks back to 
the source tree, this would probably need some careful file handling to not 
overwrite the real files with symlinks or something like that.

Fix option 2 is to rerun configure before make distprep.


pgsql-hackers by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: A smaller default postgresql.conf
Next
From: Joshua Drake
Date:
Subject: Re: A smaller default postgresql.conf