Release 1.0.0.
[third_party/subunit] / Makefile.am
1 EXTRA_DIST =  \
2         .gitignore \
3         Apache-2.0 \
4         BSD \
5         INSTALL \
6         Makefile.am \
7         NEWS \
8         README \
9         all_tests.py \
10         c++/README \
11         c/README \
12         c/check-subunit-0.9.3.patch \
13         c/check-subunit-0.9.5.patch \
14         c/check-subunit-0.9.6.patch \
15         perl/Makefile.PL.in \
16         perl/lib/Subunit.pm \
17         perl/lib/Subunit/Diff.pm \
18         perl/subunit-diff \
19         python/iso8601/LICENSE \
20         python/iso8601/README \
21         python/iso8601/README.subunit \
22         python/iso8601/setup.py \
23         python/iso8601/test_iso8601.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_filters.py \
30         python/subunit/tests/test_output_filter.py \
31         python/subunit/tests/test_progress_model.py \
32         python/subunit/tests/test_run.py \
33         python/subunit/tests/test_subunit_filter.py \
34         python/subunit/tests/test_subunit_stats.py \
35         python/subunit/tests/test_subunit_tags.py \
36         python/subunit/tests/test_tap2subunit.py \
37         python/subunit/tests/test_test_protocol.py \
38         python/subunit/tests/test_test_protocol2.py \
39         python/subunit/tests/test_test_results.py \
40         setup.py \
41         shell/README \
42         shell/share/subunit.sh \
43         shell/subunit-ui.patch \
44         shell/tests/test_function_output.sh \
45         shell/tests/test_source_library.sh
46
47 ACLOCAL_AMFLAGS = -I m4
48
49 include_subunitdir = $(includedir)/subunit
50
51 dist_bin_SCRIPTS = \
52         filters/subunit-1to2 \
53         filters/subunit-2to1 \
54         filters/subunit-filter \
55         filters/subunit-ls \
56         filters/subunit-notify \
57         filters/subunit-output \
58         filters/subunit-stats \
59         filters/subunit-tags \
60         filters/subunit2csv \
61         filters/subunit2gtk \
62         filters/subunit2junitxml \
63         filters/subunit2pyunit \
64         filters/tap2subunit
65
66 TESTS = $(check_PROGRAMS)
67
68 ## install libsubunit.pc
69 pcdatadir = $(libdir)/pkgconfig
70 pcdata_DATA = \
71         libsubunit.pc \
72         libcppunit_subunit.pc
73
74 pkgpython_PYTHON = \
75         python/subunit/__init__.py \
76         python/subunit/chunked.py \
77         python/subunit/details.py \
78         python/subunit/filters.py \
79         python/subunit/iso8601.py \
80         python/subunit/progress_model.py \
81         python/subunit/run.py \
82         python/subunit/v2.py \
83         python/subunit/test_results.py \
84         python/subunit/_output.py
85
86 lib_LTLIBRARIES = libsubunit.la
87 lib_LTLIBRARIES +=  libcppunit_subunit.la
88
89 include_subunit_HEADERS = \
90         c/include/subunit/child.h \
91         c++/SubunitTestProgressListener.h
92
93 check_PROGRAMS = \
94         c/tests/test_child
95
96 libsubunit_la_SOURCES = \
97         c/lib/child.c \
98         c/include/subunit/child.h
99
100 libcppunit_subunit_la_SOURCES = \
101         c++/SubunitTestProgressListener.cpp \
102         c++/SubunitTestProgressListener.h
103
104 tests_LDADD = @CHECK_LIBS@ $(top_builddir)/libsubunit.la
105 c_tests_test_child_CFLAGS = -I$(top_srcdir)/c/include $(SUBUNIT_CFLAGS) @CHECK_CFLAGS@
106 c_tests_test_child_LDADD = $(tests_LDADD)
107
108
109 all-local: perl/Makefile
110         $(MAKE) -C perl all
111
112 check-local: perl/Makefile
113         $(MAKE) -C perl check
114         SHELL_SHARE='$(top_srcdir)/shell/share/' \
115         PYTHONPATH='$(abs_top_srcdir)/python':'$(abs_top_srcdir)':${PYTHONPATH} \
116         $(PYTHON) -m testtools.run all_tests.test_suite
117
118 clean-local:
119         find . -type f -name "*.pyc" -exec rm {} ';'
120         rm -f perl/Makefile
121
122 # Remove perl dir for VPATH builds.
123 distclean-local:
124         -rmdir perl > /dev/null
125         -rm perl/Makefile.PL > /dev/null
126
127 install-exec-local: perl/Makefile
128         $(MAKE) -C perl install
129
130 mostlyclean-local:
131         rm -rf perl/blib
132         rm -rf perl/pm_to_blib
133
134 # 'uninstall' perl files during distcheck
135 uninstall-local:
136         if [ "_inst" = `basename ${prefix}` ]; then \
137           $(MAKE) -C perl uninstall_distcheck; \
138             rm -f "$(DESTDIR)$(bindir)"/subunit-diff; \
139         fi
140
141 # The default for MakeMaker; can be overridden by exporting
142 INSTALLDIRS ?= site
143
144 perl/Makefile: perl/Makefile.PL
145         mkdir -p perl
146         cd perl && perl Makefile.PL INSTALLDIRS=${INSTALLDIRS}
147         -rm perl/Makefile.old > /dev/null