1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Split all OBJS style lines in makefiles into one-line-per-entry style.

When maintaining or merging patches, one of the most common sources
for conflicts are the list of objects in makefiles. Especially when
the split across lines has been changed on both sides, which is
somewhat common due to attempting to stay below 80 columns, those
conflicts are unnecessarily laborious to resolve.

By splitting, and alphabetically sorting, OBJS style lines into one
object per line, conflicts should be less frequent, and easier to
resolve when they still occur.

Author: Andres Freund
Discussion: https://postgr.es/m/20191029200901.vww4idgcxv74cwes@alap3.anarazel.de
This commit is contained in:
Andres Freund
2019-11-05 14:41:07 -08:00
parent 66c61c81b9
commit 01368e5d9d
147 changed files with 1271 additions and 302 deletions

View File

@ -1,7 +1,9 @@
# contrib/adminpack/Makefile
MODULE_big = adminpack
OBJS = adminpack.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
adminpack.o
PG_CPPFLAGS = -I$(libpq_srcdir)
EXTENSION = adminpack

View File

@ -1,7 +1,9 @@
# contrib/amcheck/Makefile
MODULE_big = amcheck
OBJS = verify_nbtree.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
verify_nbtree.o
EXTENSION = amcheck
DATA = amcheck--1.1--1.2.sql amcheck--1.0--1.1.sql amcheck--1.0.sql

View File

@ -1,7 +1,9 @@
# contrib/auto_explain/Makefile
MODULE_big = auto_explain
OBJS = auto_explain.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
auto_explain.o
PGFILEDESC = "auto_explain - logging facility for execution plans"
ifdef USE_PGXS

View File

@ -1,7 +1,14 @@
# contrib/bloom/Makefile
MODULE_big = bloom
OBJS = blcost.o blinsert.o blscan.o blutils.o blvacuum.o blvalidate.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
blcost.o \
blinsert.o \
blscan.o \
blutils.o \
blvacuum.o \
blvalidate.o
EXTENSION = bloom
DATA = bloom--1.0.sql

View File

@ -1,7 +1,9 @@
# contrib/btree_gin/Makefile
MODULE_big = btree_gin
OBJS = btree_gin.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
btree_gin.o
EXTENSION = btree_gin
DATA = btree_gin--1.0.sql btree_gin--1.0--1.1.sql btree_gin--1.1--1.2.sql \

View File

@ -2,12 +2,31 @@
MODULE_big = btree_gist
OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o \
btree_int4.o btree_int8.o btree_float4.o btree_float8.o btree_cash.o \
btree_oid.o btree_ts.o btree_time.o btree_date.o btree_interval.o \
btree_macaddr.o btree_macaddr8.o btree_inet.o btree_text.o \
btree_bytea.o btree_bit.o btree_numeric.o btree_uuid.o \
btree_enum.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
btree_bit.o \
btree_bytea.o \
btree_cash.o \
btree_date.o \
btree_enum.o \
btree_float4.o \
btree_float8.o \
btree_gist.o \
btree_inet.o \
btree_int2.o \
btree_int4.o \
btree_int8.o \
btree_interval.o \
btree_macaddr.o \
btree_macaddr8.o \
btree_numeric.o \
btree_oid.o \
btree_text.o \
btree_time.o \
btree_ts.o \
btree_utils_num.o \
btree_utils_var.o \
btree_uuid.o
EXTENSION = btree_gist
DATA = btree_gist--unpackaged--1.0.sql btree_gist--1.0--1.1.sql \

View File

@ -1,7 +1,10 @@
# contrib/cube/Makefile
MODULE_big = cube
OBJS= cube.o cubeparse.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
cube.o \
cubeparse.o
EXTENSION = cube
DATA = cube--1.2.sql cube--1.2--1.3.sql cube--1.3--1.4.sql \

View File

@ -1,7 +1,9 @@
# contrib/dblink/Makefile
MODULE_big = dblink
OBJS = dblink.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
dblink.o
PG_CPPFLAGS = -I$(libpq_srcdir)
SHLIB_LINK_INTERNAL = $(libpq)

View File

@ -1,7 +1,9 @@
# contrib/dict_int/Makefile
MODULE_big = dict_int
OBJS = dict_int.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
dict_int.o
EXTENSION = dict_int
DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql

View File

@ -1,7 +1,9 @@
# contrib/dict_xsyn/Makefile
MODULE_big = dict_xsyn
OBJS = dict_xsyn.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
dict_xsyn.o
EXTENSION = dict_xsyn
DATA = dict_xsyn--1.0.sql dict_xsyn--unpackaged--1.0.sql

View File

@ -1,7 +1,10 @@
# contrib/fuzzystrmatch/Makefile
MODULE_big = fuzzystrmatch
OBJS = fuzzystrmatch.o dmetaphone.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
dmetaphone.o \
fuzzystrmatch.o
EXTENSION = fuzzystrmatch
DATA = fuzzystrmatch--1.1.sql fuzzystrmatch--1.0--1.1.sql \

View File

@ -1,8 +1,13 @@
# contrib/hstore/Makefile
MODULE_big = hstore
OBJS = hstore_io.o hstore_op.o hstore_gist.o hstore_gin.o hstore_compat.o \
$(WIN32RES)
OBJS = \
$(WIN32RES) \
hstore_compat.o \
hstore_gin.o \
hstore_gist.o \
hstore_io.o \
hstore_op.o
EXTENSION = hstore
DATA = hstore--1.4.sql \

View File

@ -1,7 +1,9 @@
# contrib/hstore_plperl/Makefile
MODULE_big = hstore_plperl
OBJS = hstore_plperl.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
hstore_plperl.o
PGFILEDESC = "hstore_plperl - hstore transform for plperl"

View File

@ -1,7 +1,9 @@
# contrib/hstore_plpython/Makefile
MODULE_big = hstore_plpython$(python_majorversion)
OBJS = hstore_plpython.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
hstore_plpython.o
PGFILEDESC = "hstore_plpython - hstore transform for plpython"
EXTENSION = hstore_plpythonu hstore_plpython2u hstore_plpython3u

View File

@ -1,8 +1,15 @@
# contrib/intarray/Makefile
MODULE_big = _int
OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o \
_intbig_gist.o _int_gin.o _int_selfuncs.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
_int_bool.o \
_int_gin.o \
_int_gist.o \
_int_op.o \
_int_selfuncs.o \
_int_tool.o \
_intbig_gist.o
EXTENSION = intarray
DATA = intarray--1.2.sql intarray--1.1--1.2.sql intarray--1.0--1.1.sql \

View File

@ -1,7 +1,9 @@
# contrib/jsonb_plperl/Makefile
MODULE_big = jsonb_plperl
OBJS = jsonb_plperl.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
jsonb_plperl.o
PGFILEDESC = "jsonb_plperl - jsonb transform for plperl"
PG_CPPFLAGS = -I$(top_srcdir)/src/pl/plperl

View File

@ -1,7 +1,9 @@
# contrib/jsonb_plpython/Makefile
MODULE_big = jsonb_plpython$(python_majorversion)
OBJS = jsonb_plpython.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
jsonb_plpython.o
PGFILEDESC = "jsonb_plpython - transform between jsonb and plpythonu"
PG_CPPFLAGS = -I$(top_srcdir)/src/pl/plpython $(python_includespec) -DPLPYTHON_LIBNAME='"plpython$(python_majorversion)"'

View File

@ -1,8 +1,17 @@
# contrib/ltree/Makefile
MODULE_big = ltree
OBJS = ltree_io.o ltree_op.o lquery_op.o _ltree_op.o crc32.o \
ltxtquery_io.o ltxtquery_op.o ltree_gist.o _ltree_gist.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
_ltree_gist.o \
_ltree_op.o \
crc32.o \
lquery_op.o \
ltree_gist.o \
ltree_io.o \
ltree_op.o \
ltxtquery_io.o \
ltxtquery_op.o
PG_CPPFLAGS = -DLOWER_NODE
EXTENSION = ltree

View File

@ -1,7 +1,9 @@
# contrib/ltree_plpython/Makefile
MODULE_big = ltree_plpython$(python_majorversion)
OBJS = ltree_plpython.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
ltree_plpython.o
PGFILEDESC = "ltree_plpython - ltree transform for plpython"
EXTENSION = ltree_plpythonu ltree_plpython2u ltree_plpython3u

View File

@ -4,7 +4,9 @@ PGFILEDESC = "oid2name - examine the file structure"
PGAPPICON = win32
PROGRAM = oid2name
OBJS = oid2name.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
oid2name.o
TAP_TESTS = 1

View File

@ -1,8 +1,15 @@
# contrib/pageinspect/Makefile
MODULE_big = pageinspect
OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o \
brinfuncs.o ginfuncs.o hashfuncs.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
brinfuncs.o \
btreefuncs.o \
fsmfuncs.o \
ginfuncs.o \
hashfuncs.o \
heapfuncs.o \
rawpage.o
EXTENSION = pageinspect
DATA = pageinspect--1.7--1.8.sql pageinspect--1.6--1.7.sql \

View File

@ -1,7 +1,9 @@
# contrib/passwordcheck/Makefile
MODULE_big = passwordcheck
OBJS = passwordcheck.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
passwordcheck.o
PGFILEDESC = "passwordcheck - strengthen user password checks"
# uncomment the following two lines to enable cracklib support

View File

@ -1,7 +1,9 @@
# contrib/pg_buffercache/Makefile
MODULE_big = pg_buffercache
OBJS = pg_buffercache_pages.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
pg_buffercache_pages.o
EXTENSION = pg_buffercache
DATA = pg_buffercache--1.2.sql pg_buffercache--1.2--1.3.sql \

View File

@ -1,7 +1,9 @@
# contrib/pg_freespacemap/Makefile
MODULE_big = pg_freespacemap
OBJS = pg_freespacemap.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
pg_freespacemap.o
EXTENSION = pg_freespacemap
DATA = pg_freespacemap--1.1.sql pg_freespacemap--1.1--1.2.sql \

View File

@ -1,7 +1,10 @@
# contrib/pg_prewarm/Makefile
MODULE_big = pg_prewarm
OBJS = pg_prewarm.o autoprewarm.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
autoprewarm.o \
pg_prewarm.o
EXTENSION = pg_prewarm
DATA = pg_prewarm--1.1--1.2.sql pg_prewarm--1.1.sql pg_prewarm--1.0--1.1.sql

View File

@ -4,7 +4,9 @@ PGFILEDESC = "pg_standby - supports creation of a warm standby"
PGAPPICON = win32
PROGRAM = pg_standby
OBJS = pg_standby.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
pg_standby.o
ifdef USE_PGXS
PG_CONFIG = pg_config

View File

@ -1,7 +1,9 @@
# contrib/pg_stat_statements/Makefile
MODULE_big = pg_stat_statements
OBJS = pg_stat_statements.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
pg_stat_statements.o
EXTENSION = pg_stat_statements
DATA = pg_stat_statements--1.4.sql pg_stat_statements--1.6--1.7.sql \

View File

@ -1,7 +1,12 @@
# contrib/pg_trgm/Makefile
MODULE_big = pg_trgm
OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
trgm_gin.o \
trgm_gist.o \
trgm_op.o \
trgm_regexp.o
EXTENSION = pg_trgm
DATA = pg_trgm--1.3--1.4.sql \

View File

@ -1,7 +1,9 @@
# contrib/pg_visibility/Makefile
MODULE_big = pg_visibility
OBJS = pg_visibility.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
pg_visibility.o
EXTENSION = pg_visibility
DATA = pg_visibility--1.1.sql pg_visibility--1.1--1.2.sql \

View File

@ -14,16 +14,35 @@ CF_SRCS = $(if $(subst no,,$(with_openssl)), $(OSSL_SRCS), $(INT_SRCS))
CF_TESTS = $(if $(subst no,,$(with_openssl)), $(OSSL_TESTS), $(INT_TESTS))
CF_PGP_TESTS = $(if $(subst no,,$(with_zlib)), $(ZLIB_TST), $(ZLIB_OFF_TST))
SRCS = pgcrypto.c px.c px-hmac.c px-crypt.c \
crypt-gensalt.c crypt-blowfish.c crypt-des.c \
crypt-md5.c $(CF_SRCS) \
mbuf.c pgp.c pgp-armor.c pgp-cfb.c pgp-compress.c \
pgp-decrypt.c pgp-encrypt.c pgp-info.c pgp-mpi.c \
pgp-pubdec.c pgp-pubenc.c pgp-pubkey.c pgp-s2k.c \
pgp-pgsql.c
SRCS = \
$(CF_SRCS) \
crypt-blowfish.c \
crypt-des.c \
crypt-gensalt.c \
crypt-md5.c \
mbuf.c \
pgcrypto.c \
pgp-armor.c \
pgp-cfb.c \
pgp-compress.c \
pgp-decrypt.c \
pgp-encrypt.c \
pgp-info.c \
pgp-mpi.c \
pgp-pgsql.c \
pgp-pubdec.c \
pgp-pubenc.c \
pgp-pubkey.c \
pgp-s2k.c \
pgp.c \
px-crypt.c \
px-hmac.c \
px.c
MODULE_big = pgcrypto
OBJS = $(SRCS:.c=.o) $(WIN32RES)
OBJS = \
$(SRCS:.c=.o) \
$(WIN32RES)
EXTENSION = pgcrypto
DATA = pgcrypto--1.3.sql pgcrypto--1.2--1.3.sql pgcrypto--1.1--1.2.sql \

View File

@ -1,7 +1,9 @@
# contrib/pgrowlocks/Makefile
MODULE_big = pgrowlocks
OBJS = pgrowlocks.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
pgrowlocks.o
EXTENSION = pgrowlocks
DATA = pgrowlocks--1.2.sql pgrowlocks--1.1--1.2.sql pgrowlocks--1.0--1.1.sql \

View File

@ -1,7 +1,11 @@
# contrib/pgstattuple/Makefile
MODULE_big = pgstattuple
OBJS = pgstattuple.o pgstatindex.o pgstatapprox.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
pgstatapprox.o \
pgstatindex.o \
pgstattuple.o
EXTENSION = pgstattuple
DATA = pgstattuple--1.4.sql pgstattuple--1.4--1.5.sql \

View File

@ -1,7 +1,13 @@
# contrib/postgres_fdw/Makefile
MODULE_big = postgres_fdw
OBJS = postgres_fdw.o option.o deparse.o connection.o shippable.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
connection.o \
deparse.o \
option.o \
postgres_fdw.o \
shippable.o
PGFILEDESC = "postgres_fdw - foreign data wrapper for PostgreSQL"
PG_CPPFLAGS = -I$(libpq_srcdir)

View File

@ -1,7 +1,10 @@
# contrib/seg/Makefile
MODULE_big = seg
OBJS = seg.o segparse.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
seg.o \
segparse.o
EXTENSION = seg
DATA = seg--1.1.sql seg--1.1--1.2.sql seg--1.2--1.3.sql \

View File

@ -1,8 +1,17 @@
# contrib/sepgsql/Makefile
MODULE_big = sepgsql
OBJS = hooks.o selinux.o uavc.o label.o dml.o \
database.o schema.o relation.o proc.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
database.o \
dml.o \
hooks.o \
label.o \
proc.o \
relation.o \
schema.o \
selinux.o \
uavc.o
DATA_built = sepgsql.sql
PGFILEDESC = "sepgsql - SELinux integration"

View File

@ -1,7 +1,9 @@
# contrib/sslinfo/Makefile
MODULE_big = sslinfo
OBJS = sslinfo.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
sslinfo.o
EXTENSION = sslinfo
DATA = sslinfo--1.2.sql sslinfo--1.1--1.2.sql sslinfo--1.0--1.1.sql \

View File

@ -1,7 +1,9 @@
# contrib/tsm_system_rows/Makefile
MODULE_big = tsm_system_rows
OBJS = tsm_system_rows.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
tsm_system_rows.o
PGFILEDESC = "tsm_system_rows - TABLESAMPLE method which accepts number of rows as a limit"
EXTENSION = tsm_system_rows

View File

@ -1,7 +1,9 @@
# contrib/tsm_system_time/Makefile
MODULE_big = tsm_system_time
OBJS = tsm_system_time.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
tsm_system_time.o
PGFILEDESC = "tsm_system_time - TABLESAMPLE method which accepts time in milliseconds as a limit"
EXTENSION = tsm_system_time

View File

@ -1,7 +1,9 @@
# contrib/unaccent/Makefile
MODULE_big = unaccent
OBJS = unaccent.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
unaccent.o
EXTENSION = unaccent
DATA = unaccent--1.1.sql unaccent--1.0--1.1.sql unaccent--unpackaged--1.0.sql

View File

@ -1,7 +1,10 @@
# contrib/uuid-ossp/Makefile
MODULE_big = uuid-ossp
OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) $(WIN32RES)
OBJS = \
$(UUID_EXTRA_OBJS) \
$(WIN32RES) \
uuid-ossp.o
EXTENSION = uuid-ossp
DATA = uuid-ossp--1.1.sql uuid-ossp--1.0--1.1.sql uuid-ossp--unpackaged--1.0.sql

View File

@ -4,7 +4,9 @@ PGFILEDESC = "vacuumlo - removes orphaned large objects"
PGAPPICON = win32
PROGRAM = vacuumlo
OBJS = vacuumlo.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
vacuumlo.o
TAP_TESTS = 1

View File

@ -1,7 +1,10 @@
# contrib/xml2/Makefile
MODULE_big = pgxml
OBJS = xpath.o xslt_proc.o $(WIN32RES)
OBJS = \
$(WIN32RES) \
xpath.o \
xslt_proc.o
EXTENSION = xml2
DATA = xml2--1.1.sql xml2--1.0--1.1.sql xml2--unpackaged--1.0.sql