forked from pgaudit/set_user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 844 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
MODULES = set_user
EXTENSION = set_user
DATA = set_user--3.0.sql set_user--2.0--3.0.sql set_user--1.6--2.0.sql set_user--1.5--1.6.sql set_user--1.4--1.5.sql set_user--1.1--1.4.sql set_user--1.0--1.1.sql
PGFILEDESC = "set_user - similar to SET ROLE but with added logging"
REGRESS = set_user
LDFLAGS_SL += $(filter -lm, $(LIBS))
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/set_user
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
.PHONY: install-headers uninstall-headers
install: install-headers
install-headers:
$(MKDIR_P) "$(DESTDIR)$(includedir)"
$(INSTALL_DATA) "set_user.h" "$(DESTDIR)$(includedir)"
uninstall: uninstall-headers
uninstall-headers:
rm "$(DESTDIR)$(includedir)/set_user.h"