Makefile.am 1.97 KB
Newer Older
1
SUBDIRS = support tools projects src resources projects-distrib examples doc
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
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)
54 55
	$(INSTALL) -d $(DESTDIR)$(datadir)/doc
	$(INSTALL) -d $(DESTDIR)$(datadir)/doc/ocarina
56 57 58 59
	$(INSTALL_SCRIPT) ocarina-config $(DESTDIR)$(bindir)

uninstall-local:
	rm -f $(DESTDIR)$(bindir)/ocarina-config
julien.delange's avatar
julien.delange committed
60 61 62 63 64 65 66

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

67 68 69
# We disable checking of the distclean rule, it is a nuisance
distcleancheck:
        @: