-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile.am
75 lines (60 loc) · 1.99 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
SUBDIRS = support tools projects src resources projects-distrib examples doc
AUTOMAKE_OPTIONS = no-dependencies
ACLOCAL_AMFLAGS = -I support
CLEANFILES = config-stamp
EXTRA_DIST = $(top_srcdir)/Makefile.common
# Default testing behavior. Can be overridden by the user
MAKE_TESTS = yes
CLEAR_AT_TEST_END = yes
test-suite: test-suite-internal
test-suite-internal:
@if test '$(MAKE_TESTS)' = yes; then \
if test -x '$(top_srcdir)/autotest.sh'; then \
PATH="$(DESTDIR)$(bindir):$$PATH" \
&& path_conv="@CYGPATH_W@" path_sep="@PATH_SEP@" \
$(top_srcdir)/autotest.sh --tests \
&& (test '$(CLEAR_AT_TEST_END)' = yes \
&& clear \
&& echo "TESTSUITE SUCCESSFULLY PASSED" \
&& echo "TESTED: `which ocarina`" \
&& sleep 5 || true) || exit 1;\
fi; \
if test -x '$(top_srcdir)/../autotest.sh'; then \
PATH="$(DESTDIR)$(bindir):$$PATH" \
&& path_conv="@CYGPATH_W@" path_sep="@PATH_SEP@" \
$(top_srcdir)/../autotest.sh --tests \
&& (test '$(CLEAR_AT_TEST_END)' = yes \
&& clear \
&& echo "TESTSUITE SUCCESSFULLY PASSED" \
&& echo "TESTED: `which ocarina`"\
&& sleep 5 || true) || exit 1;\
fi; \
fi
tests::
@$(MAKE) test-suite-internal "MAKE_TESTS=yes" "CLEAR_AT_TEST_END=no"
examples::
@$(MAKE) -C resources/runtime maybe-check-runtimes
gnatcheck::
@$(MAKE) -C projects gnatcheck
gnatmetric::
@$(MAKE) -C projects gnatmetric
check-local: install
@$(MAKE) test-suite
@$(MAKE) -C resources/runtime maybe-check-runtimes
STRIP = "@abs_top_srcdir@/support/strip_wrapper.sh"
install-exec-local:
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(datadir)
$(INSTALL) -d $(DESTDIR)$(datadir)/doc
$(INSTALL) -d $(DESTDIR)$(datadir)/doc/ocarina
$(INSTALL_SCRIPT) ocarina-config $(DESTDIR)$(bindir)
uninstall-local:
rm -f $(DESTDIR)$(bindir)/ocarina-config
release:
rm -rf release/
mkdir release/
$(MAKE) dist
cp -f $(DIST_ARCHIVES) release/$(DIST_ARCHIVES)
# We disable checking of the distclean rule, it is a nuisance
distcleancheck:
@: