mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
d1d388603e
The previous coding resulted in contrib modules unintentionally overriding the use of CONTRIB_TESTDB. There seems no particularly good reason to allow that (after all, the makefile can set CONTRIB_TESTDB if that's really what it intends). In passing, document REGRESS_OPTS where the other pgxs.mk options are documented. Back-patch to 9.1 --- in prior versions, there were no cases of contrib modules setting REGRESS_OPTS without including the --dbname switch, so while the coding was fragile there was no actual bug.
29 lines
708 B
Makefile
29 lines
708 B
Makefile
# contrib/sepgsql/Makefile
|
|
|
|
MODULE_big = sepgsql
|
|
OBJS = hooks.o selinux.o label.o dml.o \
|
|
schema.o relation.o proc.o
|
|
DATA_built = sepgsql.sql
|
|
|
|
REGRESS = label dml misc
|
|
REGRESS_PREP = check_selinux_environment
|
|
REGRESS_OPTS = --launcher $(top_builddir)/contrib/sepgsql/launcher
|
|
|
|
EXTRA_CLEAN = -r tmp *.pp sepgsql-regtest.if sepgsql-regtest.fc
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/sepgsql
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
SHLIB_LINK += -lselinux
|
|
|
|
check_selinux_environment:
|
|
@$(top_builddir)/contrib/sepgsql/chkselinuxenv "$(bindir)" "$(datadir)"
|