]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Split some long Makefile lists
authorMichael Paquier <michael@paquier.xyz>
Sun, 28 Dec 2025 00:17:42 +0000 (09:17 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 28 Dec 2025 00:17:42 +0000 (09:17 +0900)
This change makes more readable code diffs when adding new items or
removing old items, while ensuring that lines do not get excessively
long.  Some SUBDIRS, PROGRAMS and REGRESS lists are split.

Note that there are a few more REGRESS lists that could be split,
particularly in contrib/.

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Co-Authored-By: Jacob Champion <jacob.champion@enterprisedb.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Japin Li <japinli@hotmail.com>
Reviewed-by: Man Zeng <zengman@halodbtech.com>
Discussion: https://postgr.es/m/DF6HDGB559U5.3MPRFCWPONEAE@jeltef.nl

contrib/pageinspect/Makefile
src/backend/Makefile
src/backend/access/Makefile
src/backend/optimizer/Makefile
src/backend/storage/Makefile
src/bin/scripts/Makefile
src/include/Makefile
src/interfaces/ecpg/Makefile
src/pl/tcl/Makefile
src/test/Makefile
src/test/examples/Makefile

index 9dee765331069c5cf66865a31a2606ec5c46c602..eae989569d013c721905fe4b090e3975266cbf58 100644 (file)
@@ -23,7 +23,16 @@ DATA =  pageinspect--1.12--1.13.sql \
        pageinspect--1.0--1.1.sql
 PGFILEDESC = "pageinspect - functions to inspect contents of database pages"
 
-REGRESS = page btree brin gin gist hash checksum oldextversions
+# "page" is first because it creates the extension.
+REGRESS = \
+       page \
+       brin \
+       btree \
+       checksum \
+       gin \
+       gist \
+       hash \
+       oldextversions
 
 ifdef USE_PGXS
 PG_CONFIG = pg_config
index 7344c8c7f5c65b5d417cbabd564a791a52ac121a..43e1e60489119f6a10ca62b595df1ebb123f3baa 100644 (file)
@@ -16,11 +16,33 @@ subdir = src/backend
 top_builddir = ../..
 include $(top_builddir)/src/Makefile.global
 
-SUBDIRS = access archive backup bootstrap catalog parser commands executor \
-       foreign lib libpq \
-       main nodes optimizer partitioning port postmaster \
-       regex replication rewrite \
-       statistics storage tcop tsearch utils $(top_builddir)/src/timezone \
+SUBDIRS = \
+       access \
+       archive \
+       backup \
+       bootstrap \
+       catalog \
+       parser \
+       commands \
+       executor \
+       foreign \
+       lib \
+       libpq \
+       main \
+       nodes \
+       optimizer \
+       partitioning \
+       port \
+       postmaster \
+       regex \
+       replication \
+       rewrite \
+       statistics \
+       storage \
+       tcop \
+       tsearch \
+       utils \
+       $(top_builddir)/src/timezone \
        jit
 
 include $(srcdir)/common.mk
index 1932d11d154e338a64ceb7da7fe893c84d01efdf..e88d72ea0397d11e0b0d4e2230c732395a48ec74 100644 (file)
@@ -8,7 +8,20 @@ subdir = src/backend/access
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-SUBDIRS            = brin common gin gist hash heap index nbtree rmgrdesc spgist \
-                         sequence table tablesample transam
+SUBDIRS            = \
+       brin \
+       common \
+       gin \
+       gist \
+       hash \
+       heap \
+       index \
+       nbtree \
+       rmgrdesc \
+       spgist \
+       sequence \
+       table \
+       tablesample \
+       transam
 
 include $(top_srcdir)/src/backend/common.mk
index f523e5e33ea3dd7047bcb560291f9616b03af1c2..0e7e76a71506d31c77c2285a3f2a477b071e61af 100644 (file)
@@ -8,6 +8,11 @@ subdir = src/backend/optimizer
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-SUBDIRS     = geqo path plan prep util
+SUBDIRS = \
+       geqo \
+       path \
+       plan \
+       prep \
+       util
 
 include $(top_srcdir)/src/backend/common.mk
index eec03f6f2b4c5957ffd1f5d8604626f505998867..2afb42ca96e4080da5b321ca52cd33d5775bfd59 100644 (file)
@@ -8,6 +8,16 @@ subdir = src/backend/storage
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-SUBDIRS     = aio buffer file freespace ipc large_object lmgr page smgr sync
+SUBDIRS = \
+       aio \
+       buffer \
+       file \
+       freespace \
+       ipc \
+       large_object \
+       lmgr \
+       page \
+       smgr \
+       sync
 
 include $(top_srcdir)/src/backend/common.mk
index 019ca06455da983358962cc17923c756926acd7b..0adac081f2ed1e0d36497ff8b71a17bc053a5ab9 100644 (file)
@@ -16,7 +16,15 @@ subdir = src/bin/scripts
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-PROGRAMS = createdb createuser dropdb dropuser clusterdb vacuumdb reindexdb pg_isready
+PROGRAMS = \
+       clusterdb \
+       createdb \
+       createuser \
+       dropdb \
+       dropuser \
+       pg_isready \
+       reindexdb \
+       vacuumdb
 
 override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
 LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils $(libpq_pgport)
index 24c5452de98fba992ddafaa3b2ba126719e432ff..4ef060e9050359c155a6e33d94655d91b87977c5 100644 (file)
@@ -17,14 +17,46 @@ all: pg_config.h pg_config_os.h
 
 
 # Subdirectories containing installable headers
-SUBDIRS = access archive bootstrap catalog commands common datatype \
-       executor fe_utils foreign jit \
-       lib libpq mb nodes optimizer parser partitioning postmaster \
-       regex replication rewrite \
-       statistics storage tcop snowball snowball/libstemmer tsearch \
-       tsearch/dicts utils port port/atomics port/win32 port/win32_msvc \
-       port/win32_msvc/sys port/win32/arpa port/win32/netinet \
-       port/win32/sys portability
+SUBDIRS = \
+       access \
+       archive \
+       bootstrap \
+       catalog \
+       commands \
+       common \
+       datatype \
+       executor \
+       fe_utils \
+       foreign \
+       jit \
+       lib \
+       libpq \
+       mb \
+       nodes \
+       optimizer \
+       parser \
+       partitioning \
+       postmaster \
+       regex \
+       replication \
+       rewrite \
+       statistics \
+       storage \
+       tcop \
+       snowball \
+       snowball/libstemmer \
+       tsearch \
+       tsearch/dicts \
+       utils \
+       port \
+       port/atomics \
+       port/win32 \
+       port/win32_msvc \
+       port/win32_msvc/sys \
+       port/win32/arpa \
+       port/win32/netinet \
+       port/win32/sys \
+       portability
 
 # Install all headers
 install: all installdirs
index 3002bc3c1bb66d67b835ca625eae800c23e3279a..1977981aa9558489f0b90eb12633bde4113e15be 100644 (file)
@@ -2,7 +2,12 @@ subdir = src/interfaces/ecpg
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-SUBDIRS = include pgtypeslib ecpglib compatlib preproc
+SUBDIRS = \
+       compatlib \
+       ecpglib \
+       include \
+       pgtypeslib \
+       preproc
 
 # Suppress parallel build of subdirectories to avoid a bug in GNU make 3.82, cf
 # https://savannah.gnu.org/bugs/?30653
index dd57f7d694c82a12c1d6510f906de32b46306826..7dc7cf3497ac8c39acb10acda3295e83cd6d68d3 100644 (file)
@@ -30,7 +30,17 @@ DATA = pltcl.control pltcl--1.0.sql \
        pltclu.control pltclu--1.0.sql
 
 REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-extension=pltcl
-REGRESS = pltcl_setup pltcl_queries pltcl_trigger pltcl_call pltcl_start_proc pltcl_subxact pltcl_unicode pltcl_transaction
+# "pltcl_setup" is first because the other tests depend on the objects it
+# creates.
+REGRESS = \
+       pltcl_setup \
+       pltcl_call \
+       pltcl_queries \
+       pltcl_start_proc \
+       pltcl_subxact \
+       pltcl_transaction \
+       pltcl_trigger \
+       pltcl_unicode
 
 # Tcl on win32 ships with import libraries only for Microsoft Visual C++,
 # which are not compatible with mingw gcc. Therefore we need to build a
index 511a72e6238a5449de51b886ad6ae1a176daa961..3eb0a06abb46e247d52541cf441ff9666115e278 100644 (file)
@@ -12,7 +12,15 @@ subdir = src/test
 top_builddir = ../..
 include $(top_builddir)/src/Makefile.global
 
-SUBDIRS = perl postmaster regress isolation modules authentication recovery subscription
+SUBDIRS = \
+       authentication \
+       isolation \
+       modules \
+       perl \
+       postmaster \
+       recovery \
+       regress \
+       subscription
 
 ifeq ($(with_icu),yes)
 SUBDIRS += icu
index e72d058e0c4b886be46eb3eeca35250ba818344b..3a4e36465baf1aa9018c4d5f626243564915303a 100644 (file)
@@ -14,7 +14,13 @@ override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
 LDFLAGS_INTERNAL += $(libpq_pgport)
 
 
-PROGS = testlibpq testlibpq2 testlibpq3 testlibpq4 testlo testlo64
+PROGS = \
+       testlibpq \
+       testlibpq2 \
+       testlibpq3 \
+       testlibpq4 \
+       testlo \
+       testlo64
 
 all: $(PROGS)