2009-09-16 12:43:58 -04:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
|
2008-01-25 14:48:26 -05:00
|
|
|
NULL =
|
|
|
|
|
2012-05-01 13:51:19 -04:00
|
|
|
SUBDIRS = clutter doc po build
|
|
|
|
|
|
|
|
if BUILD_TESTS
|
|
|
|
SUBDIRS += tests
|
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_EXAMPLES
|
|
|
|
SUBDIRS += examples
|
|
|
|
endif
|
|
|
|
|
|
|
|
DIST_SUBDIRS = clutter tests examples doc po build
|
2006-06-23 06:42:29 -04:00
|
|
|
|
2010-11-11 07:03:24 -05:00
|
|
|
# XXX - this is a massive hack to make autoreconf honour the ACLOCAL_FLAGS
|
|
|
|
# that jhbuild sets while still retaining build/autotools as the authoritative
|
|
|
|
# source for m4 macros
|
|
|
|
ACLOCAL_AMFLAGS = -I build/autotools ${ACLOCAL_FLAGS}
|
2009-02-17 09:56:35 -05:00
|
|
|
|
2010-09-13 06:30:30 -04:00
|
|
|
EXTRA_DIST = \
|
2009-11-18 10:21:09 -05:00
|
|
|
ChangeLog.pre-git-import \
|
2011-02-14 12:34:15 -05:00
|
|
|
README.in \
|
2011-09-16 05:25:47 -04:00
|
|
|
README \
|
2009-11-18 10:21:09 -05:00
|
|
|
$(NULL)
|
2006-06-23 06:42:29 -04:00
|
|
|
|
2007-06-27 07:56:41 -04:00
|
|
|
CLEANFILES = $(pcfiles)
|
2006-06-23 06:42:29 -04:00
|
|
|
|
2010-08-17 06:34:35 -04:00
|
|
|
DISTCLEANFILES =
|
2009-01-29 10:38:28 -05:00
|
|
|
|
2011-02-01 09:38:08 -05:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-maintainer-flags --enable-docs
|
2006-06-23 06:42:29 -04:00
|
|
|
|
2011-02-22 13:32:01 -05:00
|
|
|
# .release requires .changelog rules
|
2009-11-18 09:21:08 -05:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.changelog
|
2010-10-03 09:53:14 -04:00
|
|
|
include $(top_srcdir)/build/autotools/Makefile.am.release
|
2010-01-04 09:53:03 -05:00
|
|
|
|
2010-10-03 09:53:14 -04:00
|
|
|
# proxy rules for tests
|
|
|
|
test-report full-report:
|
|
|
|
$(MAKE) -C tests/conform $(@)
|
|
|
|
|
2011-01-19 06:38:25 -05:00
|
|
|
perf-report:
|
|
|
|
$(MAKE) -C tests/performance $(@)
|
|
|
|
|
2012-06-19 09:43:40 -04:00
|
|
|
if ENABLE_GCOV
|
|
|
|
# use recursive makes in order to ignore errors during check/perf
|
|
|
|
lcov:
|
|
|
|
-$(MAKE) $(AM_MAKEFLAGS) -C clutter check
|
|
|
|
-$(MAKE) $(AM_MAKEFLAGS) -C tests/conform test
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) genlcov
|
|
|
|
|
|
|
|
# we have to massage the lcov.info file slightly to hide the effect of libtool
|
|
|
|
# placing the objects files in the .libs/ directory separate from the *.c
|
|
|
|
genlcov:
|
|
|
|
$(LTP) --directory $(top_builddir) --capture --output-file clutter-lcov.info --test-name CLUTTER_TEST --no-checksum
|
|
|
|
$(SED) -e 's#.libs/##' < clutter-lcov.info > clutter-lcov.info.tmp
|
|
|
|
LANG=C $(LTP_GENHTML) --prefix $(top_builddir) --output-directory clutter-lcov --title "Clutter Code Coverage" --show-details clutter-lcov.info.tmp
|
|
|
|
rm -f clutter-lcov.info.tmp
|
|
|
|
|
|
|
|
lcov-clean:
|
|
|
|
-$(LTP) --directory $(top_builddir) -z
|
|
|
|
-$(RM) -rf clutter-lcov.info clutter-lcov
|
|
|
|
else
|
|
|
|
lcov genlcov lcov-clean:
|
|
|
|
@echo You need to configure Clutter with support for gcov enabled.
|
|
|
|
@echo e.g., ./configure --enable-gcov
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: test-report full-report perf-report lcov genlcov lcov-clean
|