-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
38 lines (28 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#-------------------------------------------------------------------------
#
# Makefile for pg_checksums_ext
#
# Copyright (c) 1998-2022, PostgreSQL Global Development Group
#
# pg_checksums_ext/Makefile
#
#-------------------------------------------------------------------------
PROGRAM = pg_checksums_ext
PGFILEDESC = "pg_checksums_ext - Checks, enables or disables page level checksums for a cluster"
PGAPPICON=win32
OBJS= pg_checksums_ext.o port.o $(WIN32RES)
EXTRA_CLEAN = tmp_check doc/man1
PG_CONFIG ?= pg_config
PGXS = $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
# avoid linking against all libs that the server links against (xml, selinux, ...)
LIBS = -L$(shell $(PG_CONFIG) --pkglibdir) -lpgcommon -lpgport -L$(shell $(PG_CONFIG) --libdir)
PROVE_FLAGS += -I./t/perl
all: pg_checksums_ext
man: doc/man1/pg_checksums_ext.1
doc/man1/pg_checksums_ext.1: doc/pg_checksums.sgml
(cd doc && xsltproc stylesheet-man.xsl pg_checksums.sgml)
prove_installcheck:
rm -rf $(CURDIR)/tmp_check
cd $(srcdir) && TESTDIR='$(CURDIR)' PATH="$(bindir):$$PATH" PGPORT='6$(DEF_PGPORT)' PG_REGRESS='$(top_builddir)/src/test/regress/pg_regress' $(PROVE) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl)
installcheck: prove_installcheck