2009-09-16 12:43:58 -04:00
|
|
|
NULL =
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2016-04-08 16:42:15 -04:00
|
|
|
SUBDIRS = build clutter tests
|
2010-09-13 06:30:30 -04:00
|
|
|
|
2016-04-08 16:42:15 -04:00
|
|
|
if BUILD_EXAMPLES
|
|
|
|
SUBDIRS += examples
|
|
|
|
endif
|
2011-09-21 13:05:03 -04:00
|
|
|
|
2016-04-08 16:42:15 -04:00
|
|
|
DIST_SUBDIRS = clutter tests examples build
|
2011-05-08 19:27:10 -04:00
|
|
|
|
2016-04-08 16:42:15 -04: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}
|
2010-11-04 10:38:32 -04:00
|
|
|
|
2016-04-08 16:42:15 -04:00
|
|
|
CLEANFILES = $(pcfiles)
|
2012-01-22 10:36:17 -05:00
|
|
|
|
2016-04-08 16:42:15 -04:00
|
|
|
DISTCLEANFILES =
|
2016-01-12 15:44:18 -05:00
|
|
|
|
2016-04-08 16:42:15 -04:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-maintainer-flags
|
|
|
|
|
|
|
|
# proxy rules for tests
|
|
|
|
test-report full-report:
|
|
|
|
$(MAKE) -C tests/conform $(@)
|
|
|
|
|
|
|
|
perf-report:
|
|
|
|
$(MAKE) -C tests/performance $(@)
|
|
|
|
|
|
|
|
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
|