Move chunking to be \r\n based and create a dedicated module with that logic.
[third_party/subunit] / Makefile.am
1 EXTRA_DIST =  \
2         INSTALL \
3         Makefile.am \
4         README \
5         NEWS \
6         c/README \
7         c/check-subunit-0.9.3.patch \
8         c/check-subunit-0.9.5.patch \
9         c/check-subunit-0.9.6.patch \
10         c++/README \
11         perl/subunit-diff \
12         perl/Makefile.PL.in \
13         perl/lib/Subunit/Diff.pm \
14         perl/lib/Subunit.pm \
15         python/subunit/tests/TestUtil.py \
16         python/subunit/tests/__init__.py \
17         python/subunit/tests/sample-script.py \
18         python/subunit/tests/sample-two-script.py \
19         python/subunit/tests/test_chunked.py \
20         python/subunit/tests/test_content.py \
21         python/subunit/tests/test_content_type.py \
22         python/subunit/tests/test_subunit_filter.py \
23         python/subunit/tests/test_subunit_stats.py \
24         python/subunit/tests/test_subunit_tags.py \
25         python/subunit/tests/test_tap2subunit.py \
26         python/subunit/tests/test_progress_model.py \
27         python/subunit/tests/test_test_protocol.py \
28         python/subunit/tests/test_test_results.py \
29         runtests.py \
30         shell/README \
31         shell/share/subunit.sh \
32         shell/subunit-ui.patch \
33         shell/tests/test_function_output.sh \
34         shell/tests/test_source_library.sh
35
36 ACLOCAL_AMFLAGS = -I m4
37
38 SUBUNIT_CFLAGS = -Wall -Werror -Wextra -Wstrict-prototypes -Wmissing-prototypes \
39         -Wwrite-strings -Wno-variadic-macros -I$(top_srcdir)/c/include
40 AM_CFLAGS = $(SUBUNIT_CFLAGS)
41 SUBUNIT_CXXFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-variadic-macros \
42         -I$(top_srcdir)/c/include
43 AM_CXXFLAGS = $(SUBUNIT_CXXFLAGS)
44
45 include_subunitdir = $(includedir)/subunit
46
47 dist_bin_SCRIPTS = \
48         filters/subunit-filter \
49         filters/subunit-ls \
50         filters/subunit-stats \
51         filters/subunit-tags \
52         filters/subunit2gtk \
53         filters/subunit2junitxml \
54         filters/subunit2pyunit \
55         filters/tap2subunit
56
57 TESTS_ENVIRONMENT = SHELL_SHARE='$(top_srcdir)/shell/share/' PYTHONPATH='$(abs_top_srcdir)/python':${PYTHONPATH} 
58 TESTS = runtests.py $(check_PROGRAMS)
59
60 ## install libsubunit.pc
61 pcdatadir = $(libdir)/pkgconfig
62 pcdata_DATA = \
63         libsubunit.pc \
64         libcppunit_subunit.pc
65
66 pkgpython_PYTHON = \
67         python/subunit/__init__.py \
68         python/subunit/chunked.py \
69         python/subunit/content.py \
70         python/subunit/content_type.py \
71         python/subunit/iso8601.py \
72         python/subunit/progress_model.py \
73         python/subunit/run.py \
74         python/subunit/test_results.py
75
76 lib_LTLIBRARIES = libsubunit.la
77 lib_LTLIBRARIES +=  libcppunit_subunit.la
78
79 include_subunit_HEADERS = \
80         c/include/subunit/child.h \
81         c++/SubunitTestProgressListener.h
82
83 check_PROGRAMS = \
84         c/tests/test_child
85
86 check_SCRIPTS = \
87         runtests.py
88
89 libsubunit_la_SOURCES = \
90         c/lib/child.c \
91         c/include/subunit/child.h
92
93 libcppunit_subunit_la_SOURCES = \
94         c++/SubunitTestProgressListener.cpp \
95         c++/SubunitTestProgressListener.h
96
97 tests_LDADD = @CHECK_LIBS@ $(top_builddir)/libsubunit.la
98 c_tests_test_child_CFLAGS = $(SUBUNIT_CFLAGS) @CHECK_CFLAGS@
99 c_tests_test_child_LDADD = $(tests_LDADD)
100
101
102 all-local: perl/Makefile
103         $(MAKE) -C perl all
104
105 check-local: perl/Makefile
106         $(MAKE) -C perl check
107
108 clean-local:
109         find . -name "*.pyc" | xargs -r rm
110         rm -f perl/Makefile
111
112 # Remove perl dir for VPATH builds.
113 distclean-local:
114         -rmdir perl > /dev/null
115         -rm perl/Makefile.PL > /dev/null
116
117 install-exec-local: perl/Makefile
118         $(MAKE) -C perl install
119
120 mostlyclean-local:
121         rm -rf perl/blib
122         rm -rf perl/pm_to_blib
123
124 # 'uninstall' perl files during distcheck
125 uninstall-local:
126         if [ "_inst" = `basename ${prefix}` ]; then \
127           $(MAKE) -C perl uninstall_distcheck; \
128             rm -f "$(DESTDIR)$(bindir)"/subunit-diff; \
129         fi
130
131 # The default for MakeMaker; can be overridden by exporting
132 INSTALLDIRS ?= site
133
134 perl/Makefile: perl/Makefile.PL
135         mkdir -p perl
136         cd perl && perl Makefile.PL INSTALLDIRS=${INSTALLDIRS}
137         -rm perl/Makefile.old > /dev/null