mirror of
https://github.com/postgres/postgres.git
synced 2025-11-29 23:43:17 +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:
@@ -26,6 +26,8 @@ SUBDIRS = \
|
||||
utf8_and_sjis utf8_and_win utf8_and_uhc \
|
||||
utf8_and_euc2004 utf8_and_sjis2004 euc2004_sjis2004
|
||||
|
||||
$(recurse)
|
||||
|
||||
# conversion_name source_encoding destination_encoding function object
|
||||
CONVERSIONS = \
|
||||
ascii_to_mic SQL_ASCII MULE_INTERNAL ascii_to_mic ascii_and_mic \
|
||||
@@ -162,7 +164,6 @@ CONVERSIONS = \
|
||||
shift_jis_2004_to_euc_jis_2004 SHIFT_JIS_2004 EUC_JIS_2004 shift_jis_2004_to_euc_jis_2004 euc2004_sjis2004
|
||||
|
||||
all: $(SQLSCRIPT)
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|
||||
|
||||
$(SQLSCRIPT): Makefile
|
||||
ifeq ($(enable_shared), yes)
|
||||
@@ -205,15 +206,12 @@ $(REGRESSION_SCRIPT): Makefile
|
||||
|
||||
install: $(SQLSCRIPT) installdirs
|
||||
$(INSTALL_DATA) $(SQLSCRIPT) '$(DESTDIR)$(datadir)'
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|
||||
|
||||
installdirs:
|
||||
$(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(pkglibdir)'
|
||||
|
||||
uninstall:
|
||||
rm -f '$(DESTDIR)$(datadir)/$(SQLSCRIPT)'
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|
||||
|
||||
clean distclean maintainer-clean:
|
||||
rm -f $(SQLSCRIPT)
|
||||
@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done
|
||||
|
||||
Reference in New Issue
Block a user