mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Improved parallel make support
Replace for loops in makefiles with proper dependencies. Parallel make can now span across directories. Also, make -k and make -q work properly. GNU make 3.80 or newer is now required.
This commit is contained in:
@ -63,14 +63,4 @@ endif
|
||||
# start-scripts \ (does not have a makefile)
|
||||
|
||||
|
||||
all install installdirs uninstall distprep clean distclean maintainer-clean:
|
||||
@for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir $@ || exit; \
|
||||
done
|
||||
|
||||
# We'd like check operations to run all the subtests before failing.
|
||||
check installcheck:
|
||||
@CHECKERR=0; for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir $@ || CHECKERR=$$?; \
|
||||
done; \
|
||||
exit $$CHECKERR
|
||||
$(recurse)
|
||||
|
@ -4,6 +4,7 @@ MODULE_big = dblink
|
||||
PG_CPPFLAGS = -I$(libpq_srcdir)
|
||||
OBJS = dblink.o
|
||||
SHLIB_LINK = $(libpq)
|
||||
SHLIB_PREREQS = submake-libpq
|
||||
|
||||
DATA_built = dblink.sql
|
||||
DATA = uninstall_dblink.sql
|
||||
|
Reference in New Issue
Block a user