]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/atf/atf-sh/Makefile.am.inc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / atf / atf-sh / Makefile.am.inc
1 #
2 # Automated Testing Framework (atf)
3 #
4 # Copyright (c) 2007 The NetBSD Foundation, Inc.
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
10 # 1. Redistributions of source code must retain the above copyright
11 #    notice, this list of conditions and the following disclaimer.
12 # 2. Redistributions in binary form must reproduce the above copyright
13 #    notice, this list of conditions and the following disclaimer in the
14 #    documentation and/or other materials provided with the distribution.
15 #
16 # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17 # CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18 # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 # IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 # GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 #
29
30 libexec_PROGRAMS += atf-sh/atf-check
31 atf_sh_atf_check_SOURCES = atf-sh/atf-check.cpp
32 atf_sh_atf_check_LDADD = $(ATF_CXX_LIBS)
33 dist_man_MANS += atf-sh/atf-check.1
34
35 bin_PROGRAMS += atf-sh/atf-sh
36 atf_sh_atf_sh_SOURCES = atf-sh/atf-sh.cpp
37 atf_sh_atf_sh_LDADD = $(ATF_CXX_LIBS)
38 dist_man_MANS += atf-sh/atf-sh.1
39
40 atf_sh_DATA = atf-sh/libatf-sh.subr
41 atf_shdir = $(pkgdatadir)
42 EXTRA_DIST += $(atf_sh_DATA)
43
44 dist_man_MANS += atf-sh/atf-sh-api.3
45
46 atf_aclocal_DATA += atf-sh/atf-sh.m4
47 EXTRA_DIST += atf-sh/atf-sh.m4
48
49 atf_shpkgconfigdir = $(atf_pkgconfigdir)
50 atf_shpkgconfig_DATA = atf-sh/atf-sh.pc
51 CLEANFILES += atf-sh/atf-sh.pc
52 EXTRA_DIST += atf-sh/atf-sh.pc.in
53 atf-sh/atf-sh.pc: $(srcdir)/atf-sh/atf-sh.pc.in Makefile
54         test -d atf-sh || mkdir -p atf-sh
55         sed -e 's#__ATF_VERSION__#$(PACKAGE_VERSION)#g' \
56             -e 's#__EXEC_PREFIX__#$(exec_prefix)#g' \
57             <$(srcdir)/atf-sh/atf-sh.pc.in >atf-sh/atf-sh.pc.tmp
58         mv atf-sh/atf-sh.pc.tmp atf-sh/atf-sh.pc
59
60 tests_atf_sh_DATA = atf-sh/Atffile \
61                     atf-sh/Kyuafile
62 tests_atf_shdir = $(pkgtestsdir)/atf-sh
63 EXTRA_DIST += $(tests_atf_sh_DATA)
64
65 tests_atf_sh_SCRIPTS = atf-sh/misc_helpers
66 CLEANFILES += atf-sh/misc_helpers
67 EXTRA_DIST += atf-sh/misc_helpers.sh
68 atf-sh/misc_helpers: $(srcdir)/atf-sh/misc_helpers.sh
69         test -d atf-sh || mkdir -p atf-sh
70         @src="$(srcdir)/atf-sh/misc_helpers.sh"; \
71         dst="atf-sh/misc_helpers"; $(BUILD_SH_TP)
72
73 tests_atf_sh_SCRIPTS += atf-sh/atf_check_test
74 CLEANFILES += atf-sh/atf_check_test
75 EXTRA_DIST += atf-sh/atf_check_test.sh
76 atf-sh/atf_check_test: $(srcdir)/atf-sh/atf_check_test.sh
77         test -d atf-sh || mkdir -p atf-sh
78         @src="$(srcdir)/atf-sh/atf_check_test.sh"; \
79         dst="atf-sh/atf_check_test"; $(BUILD_SH_TP)
80
81 tests_atf_sh_SCRIPTS += atf-sh/atf-check_test
82 CLEANFILES += atf-sh/atf-check_test
83 EXTRA_DIST += atf-sh/atf-check_test.sh
84 atf-sh/atf-check_test: $(srcdir)/atf-sh/atf-check_test.sh
85         test -d atf-sh || mkdir -p atf-sh
86         @src="$(srcdir)/atf-sh/atf-check_test.sh"; \
87         dst="atf-sh/atf-check_test"; $(BUILD_SH_TP)
88
89 tests_atf_sh_SCRIPTS += atf-sh/config_test
90 CLEANFILES += atf-sh/config_test
91 EXTRA_DIST += atf-sh/config_test.sh
92 atf-sh/config_test: $(srcdir)/atf-sh/config_test.sh
93         test -d atf-sh || mkdir -p atf-sh
94         @src="$(srcdir)/atf-sh/config_test.sh"; \
95         dst="atf-sh/config_test"; $(BUILD_SH_TP)
96
97 tests_atf_sh_SCRIPTS += atf-sh/integration_test
98 CLEANFILES += atf-sh/integration_test
99 EXTRA_DIST += atf-sh/integration_test.sh
100 atf-sh/integration_test: $(srcdir)/atf-sh/integration_test.sh
101         test -d atf-sh || mkdir -p atf-sh
102         @src="$(srcdir)/atf-sh/integration_test.sh"; \
103         dst="atf-sh/integration_test"; $(BUILD_SH_TP)
104
105 tests_atf_sh_SCRIPTS += atf-sh/normalize_test
106 CLEANFILES += atf-sh/normalize_test
107 EXTRA_DIST += atf-sh/normalize_test.sh
108 atf-sh/normalize_test: $(srcdir)/atf-sh/normalize_test.sh
109         test -d atf-sh || mkdir -p atf-sh
110         @src="$(srcdir)/atf-sh/normalize_test.sh"; \
111         dst="atf-sh/normalize_test"; $(BUILD_SH_TP)
112
113 tests_atf_sh_SCRIPTS += atf-sh/tc_test
114 CLEANFILES += atf-sh/tc_test
115 EXTRA_DIST += atf-sh/tc_test.sh
116 atf-sh/tc_test: $(srcdir)/atf-sh/tc_test.sh
117         test -d atf-sh || mkdir -p atf-sh
118         @src="$(srcdir)/atf-sh/tc_test.sh"; \
119         dst="atf-sh/tc_test"; $(BUILD_SH_TP)
120
121 tests_atf_sh_SCRIPTS += atf-sh/tp_test
122 CLEANFILES += atf-sh/tp_test
123 EXTRA_DIST += atf-sh/tp_test.sh
124 atf-sh/tp_test: $(srcdir)/atf-sh/tp_test.sh
125         test -d atf-sh || mkdir -p atf-sh
126         @src="$(srcdir)/atf-sh/tp_test.sh"; \
127         dst="atf-sh/tp_test"; $(BUILD_SH_TP)
128
129 # vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8