@@ -16,26 +16,16 @@ OBJS = backup.o \
16
16
datapagemap.o \
17
17
parsexlog.o \
18
18
xlogreader.o \
19
+ streamutil.o \
20
+ receivelog.o \
19
21
pgut/pgut.o \
20
22
pgut/pgut-port.o
21
23
22
- DOCS = doc/pg_arman.txt
23
-
24
24
EXTRA_CLEAN = datapagemap.c datapagemap.h xlogreader.c
25
25
26
26
REGRESS = init option show delete backup restore
27
27
28
- # asciidoc and xmlto are present, so install the html documentation and man
29
- # pages as well. html is part of the vanilla documentation. Man pages need a
30
- # special handling at installation.
31
- ifneq ($(ASCIIDOC ) ,)
32
- ifneq ($(XMLTO ) ,)
33
- man_DOCS = doc/pg_arman.1
34
- DOCS += doc/pg_arman.html doc/README.html
35
- endif # XMLTO
36
- endif # ASCIIDOC
37
-
38
- all : docs datapagemap.h pg_arman
28
+ all : datapagemap.h receivelog.h streamutil.h pg_arman
39
29
ifdef $(USE_PGXS)
40
30
PG_CONFIG = pg_config
41
31
PGXS := $(shell $(PG_CONFIG ) --pgxs)
@@ -55,11 +45,9 @@ top_builddir=../..
55
45
include $(top_builddir ) /src/Makefile.global
56
46
include $(top_srcdir ) /contrib/contrib-global.mk
57
47
endif
58
- PG_CPPFLAGS = -I$(libpq_srcdir )
48
+ PG_CPPFLAGS = -I$(libpq_srcdir ) ${PTHREAD_CFLAGS}
59
49
override CPPFLAGS := -DFRONTEND $(CPPFLAGS ) $(PG_CPPFLAGS )
60
- PG_LIBS = $(libpq_pgport )
61
-
62
-
50
+ PG_LIBS = $(libpq_pgport ) ${PTHREAD_CFLAGS}
63
51
64
52
envtest :
65
53
: top_srcdir=$(top_srcdir )
@@ -74,33 +62,14 @@ datapagemap.c: % : $(top_srcdir)/src/bin/pg_rewind/%
74
62
rm -f $@ && $(LN_S ) $< .
75
63
datapagemap.h : % : $(top_srcdir ) /src/bin/pg_rewind/%
76
64
rm -f && $(LN_S ) $< .
77
-
78
- # Part related to documentation
79
- # Compile documentation as well is ASCIIDOC and XMLTO are defined
80
- ifneq ($(ASCIIDOC ) ,)
81
- ifneq ($(XMLTO ) ,)
82
- docs :
83
- $(MAKE ) -C doc/
84
-
85
- # Special handling for man pages, they need to be in a dedicated folder
86
- install : install-man
87
-
88
- install-man :
89
- $(MKDIR_P ) ' $(DESTDIR)$(mandir)/man1/'
90
- $(INSTALL_DATA ) $(man_DOCS ) ' $(DESTDIR)$(mandir)/man1/'
91
- else
92
- docs :
93
- @echo " No docs to build"
94
- endif # XMLTO
95
- else
96
- docs :
97
- @echo " No docs to build"
98
- endif # ASCIIDOC
99
-
100
- # Clean up documentation as well
101
- clean : clean-docs
102
- clean-docs :
103
- $(MAKE ) -C doc/ clean
65
+ receivelog.c : % : $(top_srcdir ) /src/bin/pg_basebackup/%
66
+ rm -f && $(LN_S ) $< .
67
+ receivelog.h : % : $(top_srcdir ) /src/bin/pg_basebackup/%
68
+ rm -f && $(LN_S ) $< .
69
+ streamutil.c : % : $(top_srcdir ) /src/bin/pg_basebackup/%
70
+ rm -f && $(LN_S ) $< .
71
+ streamutil.h : % : $(top_srcdir ) /src/bin/pg_basebackup/%
72
+ rm -f && $(LN_S ) $< .
104
73
105
74
# Disable make check
106
75
check :
0 commit comments