Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 65 lines (52 sloc) 1.828 kB
a12e719 Initial commit
postgres authored
1 #
2 # Makefile
1d32133 Update all the copyrights to add 2011
Greg Smith authored
3 # Copyright (c) 2ndQuadrant, 2010-2011
a12e719 Initial commit
postgres authored
4
20af4ff Merge commit '3ef1fa126d9c9b9ba3b29deab7f67218cdf7ce10'
Greg Smith authored
5 repmgrd_OBJS = dbutils.o config.o repmgrd.o log.o strutil.o
6 repmgr_OBJS = dbutils.o check_dir.o config.o repmgr.o log.o strutil.o
916c049 sprintf to snprintf conversion
Dan Farina authored
7
8 DATA = repmgr.sql uninstall_repmgr.sql
a12e719 Initial commit
postgres authored
9
10 PG_CPPFLAGS = -I$(libpq_srcdir)
11 PG_LIBS = $(libpq_pgport)
12
942ed7b @gregs1104 Add default makefile target. Document building
gregs1104 authored
13 all: repmgrd repmgr
3a950c9 Squashed commit of the following:
Greg Smith authored
14 $(MAKE) -C sql
942ed7b @gregs1104 Add default makefile target. Document building
gregs1104 authored
15
9341771 Add docs, fix Makefile and fix some bugs and typos
postgres authored
16 repmgrd: $(repmgrd_OBJS)
17 $(CC) $(CFLAGS) $(repmgrd_OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o repmgrd
3a950c9 Squashed commit of the following:
Greg Smith authored
18 $(MAKE) -C sql
9341771 Add docs, fix Makefile and fix some bugs and typos
postgres authored
19
20 repmgr: $(repmgr_OBJS)
21 $(CC) $(CFLAGS) $(repmgr_OBJS) $(PG_LIBS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o repmgr
22
a12e719 Initial commit
postgres authored
23 ifdef USE_PGXS
24 PGXS := $(shell pg_config --pgxs)
25 include $(PGXS)
26 else
27 subdir = contrib/repmgr
28 top_builddir = ../..
29 include $(top_builddir)/src/Makefile.global
30 include $(top_srcdir)/contrib/contrib-global.mk
31 endif
9341771 Add docs, fix Makefile and fix some bugs and typos
postgres authored
32
846c0b9 Install install/uninstall SQL also.
Dan Farina authored
33 # XXX: Try to use PROGRAM construct (see pgxs.mk) someday. Right now
34 # is overriding pgxs install.
9341771 Add docs, fix Makefile and fix some bugs and typos
postgres authored
35 install:
36 $(INSTALL_PROGRAM) repmgrd$(X) '$(DESTDIR)$(bindir)'
37 $(INSTALL_PROGRAM) repmgr$(X) '$(DESTDIR)$(bindir)'
3a950c9 Squashed commit of the following:
Greg Smith authored
38 $(MAKE) -C sql install
9341771 Add docs, fix Makefile and fix some bugs and typos
postgres authored
39
846c0b9 Install install/uninstall SQL also.
Dan Farina authored
40 ifneq (,$(DATA)$(DATA_built))
41 @for file in $(addprefix $(srcdir)/, $(DATA)) $(DATA_built); do \
42 echo "$(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/$(datamoduledir)'"; \
43 $(INSTALL_DATA) $$file '$(DESTDIR)$(datadir)/$(datamoduledir)'; \
44 done
45 endif
46
9341771 Add docs, fix Makefile and fix some bugs and typos
postgres authored
47 clean:
48 rm -f *.o
49 rm -f repmgrd
50 rm -f repmgr
3a950c9 Squashed commit of the following:
Greg Smith authored
51 $(MAKE) -C sql clean
ec86783 Makefile changes for building debian packages, left out of previous c…
Hannu Krosing authored
52
53 deb: repmgrd repmgr
54 mkdir -p ./debian/usr/bin
55 cp repmgrd repmgr ./debian/usr/bin/
3a950c9 Squashed commit of the following:
Greg Smith authored
56 mkdir -p ./debian/usr/share/postgresql/9.0/contrib/
57 cp sql/repmgr_funcs.sql ./debian/usr/share/postgresql/9.0/contrib/
58 cp sql/uninstall_repmgr_funcs.sql ./debian/usr/share/postgresql/9.0/contrib/
59 mkdir -p ./debian/usr/lib/postgresql/9.0/lib/
60 cp sql/repmgr_funcs.so ./debian/usr/lib/postgresql/9.0/lib/
ec86783 Makefile changes for building debian packages, left out of previous c…
Hannu Krosing authored
61 dpkg-deb --build debian
62 mv debian.deb ../postgresql-repmgr-9.0_1.0.0.deb
3a950c9 Squashed commit of the following:
Greg Smith authored
63 rm -rf ./debian/usr
ec86783 Makefile changes for building debian packages, left out of previous c…
Hannu Krosing authored
64
Something went wrong with that request. Please try again.