Debian Codegraph @

src/bin/pg_archivecleanup/Makefile

raw
1 # src/bin/pg_archivecleanup/Makefile
2
3 PGFILEDESC = "pg_archivecleanup - cleans archive when used with streaming replication"
4 PGAPPICON = win32
5
6 subdir = src/bin/pg_archivecleanup
7 top_builddir = ../../..
8 include $(top_builddir)/src/Makefile.global
9
10 OBJS = \
11 $(WIN32RES) \
12 pg_archivecleanup.o
13
14 all: pg_archivecleanup
15
16 pg_archivecleanup: $(OBJS) | submake-libpgport
17 $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
18
19 install: all installdirs
20 $(INSTALL_PROGRAM) pg_archivecleanup$(X) '$(DESTDIR)$(bindir)/pg_archivecleanup$(X)'
21
22 installdirs:
23 $(MKDIR_P) '$(DESTDIR)$(bindir)'
24
25 uninstall:
26 rm -f '$(DESTDIR)$(bindir)/pg_archivecleanup$(X)'
27
28 clean distclean:
29 rm -f pg_archivecleanup$(X) $(OBJS)
30 rm -rf tmp_check
31
32 check:
33 $(prove_check)
34
35 installcheck:
36 $(prove_installcheck)