Makefile.am 2.12 KB
Newer Older
1
2
SUBDIRS = support tools projects src resources projects-distrib examples @DOC_DIR@

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
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

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)
julien.delange's avatar
julien.delange committed
54
55
	$(INSTALL) -d $(DESTDIR)$(datadir)/doc
	$(INSTALL) -d $(DESTDIR)$(datadir)/doc/ocarina
56
57
58
59
60
	$(INSTALL_SCRIPT) ocarina-config $(DESTDIR)$(bindir)
	$(INSTALL_DATA) $(srcdir)/ChangeLog $(DESTDIR)$(datadir)/doc/ocarina/ChangeLog_ocarina

uninstall-local:
	rm -f $(DESTDIR)$(bindir)/ocarina-config
yoogx's avatar
yoogx committed
61
	rm -f $(DESTDIR)$(datadir)/doc/ocarina/ChangeLog_ocarina
julien.delange's avatar
julien.delange committed
62
63
64
65
66
67
68

release:
	rm -rf release/
	mkdir release/
	$(MAKE) dist
	cp -f $(DIST_ARCHIVES) release/$(DIST_ARCHIVES)

yoogx's avatar
yoogx committed
69
70
71
# We disable checking of the distclean rule, it is a nuisance
distcleancheck:
        @: