File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -452,18 +452,18 @@ function detect_cpus {
452
452
453
453
if [ -z " $CPUS " ]; then
454
454
# If there's no more accurate guess, running make with 4 processes works
455
- # well enough on typical hardware circa 2012.
455
+ # well enough on typical hardware circa 2012.
456
456
CPUS=4
457
457
fi
458
458
}
459
459
460
460
function build {
461
461
cd $PGSRC /$PGPROJECT
462
- if [ -f GNUmakefile ] ; then
463
- echo WARNING: Build found an existing GNUmakefile, not running configure again
464
- else
465
- ./configure --prefix= $PGINST / $PGPROJECT --enable-depend --enable-thread-safety $PGDEBUG
466
- fi
462
+
463
+ $PGMAKE distclean # always clean first, files in working dir may belong to
464
+ # may belong to the branch we just checked out of
465
+
466
+ ./configure --prefix= $PGINST / $PGPROJECT --enable-depend --enable-thread-safety $PGDEBUG
467
467
468
468
detect_cpus
469
469
if [ -z " $CPUS " ] ; then
You can’t perform that action at this time.
0 commit comments