s3: test dbwrap_ctdb
[Samba/gbeck.git] / lib / subunit / Makefile.am
blob310c0426ae500b5a39295672db4703354fbd2a7f
1 EXTRA_DIST =  \
2         .bzrignore \
3         Apache-2.0 \
4         BSD \
5         INSTALL \
6         Makefile.am \
7         NEWS \
8         README \
9         c++/README \
10         c/README \
11         c/check-subunit-0.9.3.patch \
12         c/check-subunit-0.9.5.patch \
13         c/check-subunit-0.9.6.patch \
14         perl/Makefile.PL.in \
15         perl/lib/Subunit.pm \
16         perl/lib/Subunit/Diff.pm \
17         perl/subunit-diff \
18         python/iso8601/LICENSE \
19         python/iso8601/README \
20         python/iso8601/README.subunit \
21         python/iso8601/setup.py \
22         python/iso8601/test_iso8601.py \
23         python/subunit/tests/TestUtil.py \
24         python/subunit/tests/__init__.py \
25         python/subunit/tests/sample-script.py \
26         python/subunit/tests/sample-two-script.py \
27         python/subunit/tests/test_chunked.py \
28         python/subunit/tests/test_details.py \
29         python/subunit/tests/test_progress_model.py \
30         python/subunit/tests/test_subunit_filter.py \
31         python/subunit/tests/test_run.py \
32         python/subunit/tests/test_subunit_stats.py \
33         python/subunit/tests/test_subunit_tags.py \
34         python/subunit/tests/test_tap2subunit.py \
35         python/subunit/tests/test_test_protocol.py \
36         python/subunit/tests/test_test_results.py \
37         runtests.py \
38         shell/README \
39         shell/share/subunit.sh \
40         shell/subunit-ui.patch \
41         shell/tests/test_function_output.sh \
42         shell/tests/test_source_library.sh
44 ACLOCAL_AMFLAGS = -I m4
46 include_subunitdir = $(includedir)/subunit
48 dist_bin_SCRIPTS = \
49         filters/subunit-filter \
50         filters/subunit-ls \
51         filters/subunit-stats \
52         filters/subunit-tags \
53         filters/subunit2gtk \
54         filters/subunit2junitxml \
55         filters/subunit2pyunit \
56         filters/tap2subunit
58 TESTS_ENVIRONMENT = SHELL_SHARE='$(top_srcdir)/shell/share/' PYTHONPATH='$(abs_top_srcdir)/python':${PYTHONPATH}
59 TESTS = runtests.py $(check_PROGRAMS)
61 ## install libsubunit.pc
62 pcdatadir = $(libdir)/pkgconfig
63 pcdata_DATA = \
64         libsubunit.pc \
65         libcppunit_subunit.pc
67 pkgpython_PYTHON = \
68         python/subunit/__init__.py \
69         python/subunit/chunked.py \
70         python/subunit/details.py \
71         python/subunit/filters.py \
72         python/subunit/iso8601.py \
73         python/subunit/progress_model.py \
74         python/subunit/run.py \
75         python/subunit/test_results.py
77 lib_LTLIBRARIES = libsubunit.la
78 lib_LTLIBRARIES +=  libcppunit_subunit.la
80 include_subunit_HEADERS = \
81         c/include/subunit/child.h \
82         c++/SubunitTestProgressListener.h
84 check_PROGRAMS = \
85         c/tests/test_child
87 check_SCRIPTS = \
88         runtests.py
90 libsubunit_la_SOURCES = \
91         c/lib/child.c \
92         c/include/subunit/child.h
94 libcppunit_subunit_la_SOURCES = \
95         c++/SubunitTestProgressListener.cpp \
96         c++/SubunitTestProgressListener.h
98 tests_LDADD = @CHECK_LIBS@ $(top_builddir)/libsubunit.la
99 c_tests_test_child_CFLAGS = -I$(top_srcdir)/c/include $(SUBUNIT_CFLAGS) @CHECK_CFLAGS@
100 c_tests_test_child_LDADD = $(tests_LDADD)
103 all-local: perl/Makefile
104         $(MAKE) -C perl all
106 check-local: perl/Makefile
107         $(MAKE) -C perl check
109 clean-local:
110         find . -type f -name "*.pyc" -exec rm {} ';'
111         rm -f perl/Makefile
113 # Remove perl dir for VPATH builds.
114 distclean-local:
115         -rmdir perl > /dev/null
116         -rm perl/Makefile.PL > /dev/null
118 install-exec-local: perl/Makefile
119         $(MAKE) -C perl install
121 mostlyclean-local:
122         rm -rf perl/blib
123         rm -rf perl/pm_to_blib
125 # 'uninstall' perl files during distcheck
126 uninstall-local:
127         if [ "_inst" = `basename ${prefix}` ]; then \
128           $(MAKE) -C perl uninstall_distcheck; \
129             rm -f "$(DESTDIR)$(bindir)"/subunit-diff; \
130         fi
132 # The default for MakeMaker; can be overridden by exporting
133 INSTALLDIRS ?= site
135 perl/Makefile: perl/Makefile.PL
136         mkdir -p perl
137         cd perl && perl Makefile.PL INSTALLDIRS=${INSTALLDIRS}
138         -rm perl/Makefile.old > /dev/null