Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / unit / atf-src / Makefile.am
blobd5cee966eb97a3f7e8267a713d5b858edfbe18d8
2 # Automated Testing Framework (atf)
4 # Copyright (c) 2007 The NetBSD Foundation, Inc.
5 # All rights reserved.
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.
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.
30 atf_aclocal_DATA =
31 BUILT_SOURCES =
32 CLEANFILES =
33 EXTRA_DIST =
34 bin_PROGRAMS =
35 dist_man_MANS =
36 include_HEADERS =
37 lib_LTLIBRARIES =
38 libexec_PROGRAMS =
39 man_MANS =
40 noinst_DATA =
41 noinst_LTLIBRARIES =
42 INSTALLCHECK_TARGETS =
43 PHONY_TARGETS =
45 ACLOCAL_AMFLAGS = -I m4
46 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-tools
48 include admin/Makefile.am.inc
49 include atf-c/Makefile.am.inc
50 include atf-c++/Makefile.am.inc
51 include atf-sh/Makefile.am.inc
52 include bootstrap/Makefile.am.inc
53 include doc/Makefile.am.inc
54 include test-programs/Makefile.am.inc
56 if ENABLE_TOOLS
57 include atf-report/Makefile.am.inc
58 include atf-config/Makefile.am.inc
59 include atf-run/Makefile.am.inc
60 include atf-version/Makefile.am.inc
61 endif
64 # Top-level distfile documents.
67 doc_DATA = AUTHORS COPYING NEWS README
68 noinst_DATA += INSTALL README
69 EXTRA_DIST += $(doc_DATA) INSTALL README
72 # Supporting logic to run our custom testsuite.
75 TESTS_ENVIRONMENT = PATH=$(prefix)/bin:$${PATH} \
76                     PKG_CONFIG_PATH=$(prefix)/lib/pkgconfig
78 testsdir = $(exec_prefix)/tests
79 pkgtestsdir = $(testsdir)/$(PACKAGE)
81 if ENABLE_TOOLS
82 INSTALLCHECK_TARGETS += installcheck-atf
83 PHONY_TARGETS += installcheck-atf
84 installcheck-atf:
85         logfile=$$(pwd)/installcheck.log; \
86         fifofile=$$(pwd)/installcheck.fifo; \
87         cd $(pkgtestsdir); \
88         rm -f $${fifofile}; \
89         mkfifo $${fifofile}; \
90         cat $${fifofile} | tee $${logfile} | $(TESTS_ENVIRONMENT) atf-report & \
91         $(TESTS_ENVIRONMENT) atf-run >>$${fifofile}; \
92         res=$${?}; \
93         wait; \
94         rm $${fifofile}; \
95         echo; \
96         echo "The verbatim output of atf-run has been saved to" \
97              "installcheck.log; exit was $${res}"; \
98         test $${res} -eq 0
99 CLEANFILES += installcheck.fifo installcheck.log
100 endif
102 PHONY_TARGETS += installcheck-kyua
103 if HAVE_KYUA
104 if !ENABLE_TOOLS
105 INSTALLCHECK_TARGETS += installcheck-kyua
106 endif
107 installcheck-kyua:
108         cd $(pkgtestsdir) && $(TESTS_ENVIRONMENT) $(KYUA) test
109 endif
111 installcheck-local: $(INSTALLCHECK_TARGETS)
113 pkgtests_DATA = Kyuafile
114 if ENABLE_TOOLS
115 pkgtests_DATA += Atffile
116 endif
117 EXTRA_DIST += $(pkgtests_DATA)
119 BUILD_SH_TP = \
120         echo "Creating $${dst}"; \
121         echo "\#! $(bindir)/atf-sh" >$${dst}; \
122         cat $${src} >>$${dst}; \
123         chmod +x $${dst}
126 # Custom targets.
129 dist-hook: forbid-dist
130 if ENABLE_TOOLS
131 forbid-dist:
132         @true
133 else
134 forbid-dist:
135         @echo "Sorry; cannot make dist without the tools enabled."
136         @echo "Please reconfigure with --enable-tools."
137         @false
138 endif
140 PHONY_TARGETS += clean-all
141 clean-all:
142         GIT="$(GIT)" $(SH) $(srcdir)/admin/clean-all.sh
144 PHONY_TARGETS += release
145 release:
146         $(SH) $(srcdir)/admin/release.sh $(PACKAGE_VERSION) $(DIST_ARCHIVES)
148 PHONY_TARGETS += release-test
149 release-test:
150         $(SH) $(srcdir)/admin/release-test.sh $(DIST_ARCHIVES)
152 .PHONY: $(PHONY_TARGETS)
154 # vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8