1 # src/bin/pg_archivecleanup/Makefile
3 PGFILEDESC
= "pg_archivecleanup - cleans archive when used with streaming replication"
6 subdir
= src
/bin
/pg_archivecleanup
7 top_builddir
= ..
/..
/..
8 include $(top_builddir
)/src
/Makefile.global
14 all: pg_archivecleanup
16 pg_archivecleanup
: $(OBJS
) | submake-libpgport
17 $(CC
) $(CFLAGS
) $^
$(LDFLAGS
) $(LDFLAGS_EX
) $(LIBS
) -o
$@
$(X
)
19 install: all installdirs
20 $(INSTALL_PROGRAM
) pg_archivecleanup
$(X
) '$(DESTDIR)$(bindir)/pg_archivecleanup$(X)'
23 $(MKDIR_P
) '$(DESTDIR)$(bindir)'
26 rm -f
'$(DESTDIR)$(bindir)/pg_archivecleanup$(X)'
29 rm -f pg_archivecleanup
$(X
) $(OBJS
)