root/lang/objective-cplusplus/i3/trunk/unix/tests/Makefile.am @ 37221

Revision 37221, 1.3 kB (checked in by saturday06, 4 years ago)

majiowatteruyo........

Line 
1EXTRA_DIST = testsuite.at $(TESTSUITE) atlocal.in
2TESTSUITE = $(srcdir)/testsuite
3AUTOM4TE = autom4te
4DISTCLEANFILES = $(top_builddir)/i3_test$(EXEEXT) $(top_builddir)/mil_test$(EXEEXT)
5
6atconfig: $(top_builddir)/config.status
7        cd $(top_builddir) && $(SHELL) config.status
8
9check-local: atconfig atlocal $(TESTSUITE)
10        $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
11
12installcheck-local: atconfig atlocal $(TESTSUITE)
13        $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
14          $(TESTSUITEFLAGS)
15
16clean-local:
17        test ! -f '$(TESTSUITE)' || \
18        $(SHELL) '$(TESTSUITE)' --clean
19        rm -f atconfig
20
21AUTOTEST = $(AUTOM4TE) --language=autotest
22
23$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
24        $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
25        mv $@.tmp $@
26
27# The `:;' works around a Bash 3.2 bug when the output is not writeable.
28$(srcdir)/package.m4: $(top_srcdir)/configure.ac
29        :;{ \
30          echo '# Signature of the current package.' && \
31          echo 'm4_define([AT_PACKAGE_NAME],      [@PACKAGE_NAME@])' && \
32          echo 'm4_define([AT_PACKAGE_TARNAME],   [@PACKAGE_TARNAME@])' && \
33          echo 'm4_define([AT_PACKAGE_VERSION],   [@PACKAGE_VERSION@])' && \
34          echo 'm4_define([AT_PACKAGE_STRING],    [@PACKAGE_STRING@])' && \
35          echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])' && \
36          echo ; \
37        } >'$(srcdir)/package.m4'
38
Note: See TracBrowser for help on using the browser.