forked from pgaudit/pgaudit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
40 lines (31 loc) · 909 Bytes
/
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
39
40
# Makefile
# pg_audit/Makefile
MODULE_big = pgaudit
OBJS = pgaudit.o config.o rule.o
EXTENSION = pgaudit
DATA = pgaudit--1.0.sql
PGFILEDESC = "pgAudit - An audit logging extension for PostgreSQL"
all: pgaudit.o
config.o: pgaudit_scan.c
pgaudit_scan.c: FLEXFLAGS = -CF -p -i
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pgaudit
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
# Regression test for all of rules.
# XXX : we must add existing 'pgaudit' regression test.
REGRESSCHECKS=init timestamp database object_type class application_name \
audit_role
pre_installcheck:
/bin/sh conf/prepare_config_file.sh
installcheck: pre_installcheck
$(pg_regress_installcheck) \
--temp-config=./conf/postgresql.conf \
--temp-instance=./tmp_check \
$(REGRESSCHECKS)