1#-------------------------------------------------------------------------
2#
3# Makefile for src/test/perl
4#
5# Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
6# Portions Copyright (c) 1994, Regents of the University of California
7#
8# src/test/perl/Makefile
9#
10#-------------------------------------------------------------------------
11
12subdir = src/test/perl
13top_builddir = ../../..
14include $(top_builddir)/src/Makefile.global
15
16ifeq ($(enable_tap_tests),yes)
17
18installdirs:
19	$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
20
21install: all installdirs
22	$(INSTALL_DATA) $(srcdir)/TestLib.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/TestLib.pm'
23	$(INSTALL_DATA) $(srcdir)/SimpleTee.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/SimpleTee.pm'
24	$(INSTALL_DATA) $(srcdir)/RecursiveCopy.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/RecursiveCopy.pm'
25	$(INSTALL_DATA) $(srcdir)/PostgresNode.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgresNode.pm'
26
27uninstall:
28	rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/TestLib.pm'
29	rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/SimpleTee.pm'
30	rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/RecursiveCopy.pm'
31	rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgresNode.pm'
32
33endif
34