Install diff-subunit in /usr/bin.
[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         c++/cppunit-subunit-1.10.2.patch \
12         perl/diff-subunit \
13         perl/Makefile.PL \
14         perl/lib/Subunit/Diff.pm \
15         perl/lib/Subunit.pm \
16         python/subunit/__init__.py \
17         python/subunit/progress_model.py \
18         python/subunit/run.py \
19         python/subunit/tests/TestUtil.py \
20         python/subunit/tests/__init__.py \
21         python/subunit/tests/sample-script.py \
22         python/subunit/tests/sample-two-script.py \
23         python/subunit/tests/test_subunit_filter.py \
24         python/subunit/tests/test_subunit_stats.py \
25         python/subunit/tests/test_subunit_tags.py \
26         python/subunit/tests/test_tap2subunit.py \
27         python/subunit/tests/test_progress_model.py \
28         python/subunit/tests/test_test_protocol.py \
29         python/subunit/tests/test_test_results.py \
30         runtests.py \
31         shell/README \
32         shell/share/subunit.sh \
33         shell/subunit-ui.patch \
34         shell/tests/test_function_output.sh \
35         shell/tests/test_source_library.sh
36
37 ACLOCAL_AMFLAGS = -I m4
38
39 SUBUNIT_CFLAGS = -Wall -Werror -Wextra -Wstrict-prototypes -Wmissing-prototypes \
40         -Wwrite-strings -Wno-variadic-macros -I$(top_srcdir)/c/include
41 AM_CFLAGS = $(SUBUNIT_CFLAGS)
42
43 include_subunitdir = $(includedir)/subunit
44
45 dist_bin_SCRIPTS = \
46         filters/subunit-filter \
47         filters/subunit-ls \
48         filters/subunit-stats \
49         filters/subunit-tags \
50         filters/subunit2gtk \
51         filters/subunit2junitxml \
52         filters/subunit2pyunit \
53         filters/tap2subunit
54
55 TESTS_ENVIRONMENT = SHELL_SHARE='$(top_srcdir)/shell/share/' PYTHONPATH='$(abs_top_srcdir)/python':${PYTHONPATH} 
56 TESTS = runtests.py $(check_PROGRAMS)
57
58 ## install libsubunit.pc
59 pcdatadir = $(libdir)/pkgconfig
60 pcdata_DATA = libsubunit.pc
61
62 pkgpython_PYTHON = \
63         python/subunit/__init__.py \
64         python/subunit/iso8601.py \
65         python/subunit/run.py \
66         python/subunit/test_results.py
67
68 lib_LTLIBRARIES = libsubunit.la
69
70 include_subunit_HEADERS = \
71         c/include/subunit/child.h
72
73 check_PROGRAMS = \
74         c/tests/test_child
75
76 check_SCRIPTS = \
77         runtests.py
78
79 libsubunit_la_SOURCES = \
80         c/lib/child.c \
81         c/include/subunit/child.h
82
83 tests_LDADD = @CHECK_LIBS@ $(top_builddir)/libsubunit.la
84 c_tests_test_child_CFLAGS = $(SUBUNIT_CFLAGS) @CHECK_CFLAGS@
85 c_tests_test_child_LDADD = $(tests_LDADD)
86
87
88 all-local: perl/Makefile
89         cd perl && $(MAKE) all
90
91 check-local: perl/Makefile
92         cd perl && $(MAKE) check
93
94 clean-local:
95         find . -name "*.pyc" | xargs -r rm
96         rm -f perl/Makefile
97
98 # Remove perl dir for VPATH builds.
99 distclean-local:
100         -rmdir perl
101         -rm perl/Makefile.PL
102
103 # NB: Installs to a perl lib dir, not usr/bin.
104 install-exec-local: perl/Makefile
105         cd perl && $(MAKE) install
106
107 mostlyclean-local:
108         rm -rf perl/blib
109         rm -rf perl/pm_to_blib
110
111 perl/Makefile: perl/Makefile.PL
112         mkdir -p perl
113         cd perl && perl @abs_top_srcdir@/perl/Makefile.PL
114         -rm perl/Makefile.old > /dev/null