1 ACLOCAL_AMFLAGS = -I build/autotools
5 SUBDIRS = json-glib build po
7 DISTCHECK_CONFIGURE_FLAGS = --enable-man --enable-maintainer-flags --enable-introspection
10 @if test -d "$(srcdir)/.git"; then \
11 echo Generating ChangeLog ; \
13 && $(top_srcdir)/build/missing --run git log --stat ) > ChangeLog.tmp \
14 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
15 || ( rm -f ChangeLog.tmp; \
16 echo Failed to generate ChangeLog >&2 ); \
18 echo A git checkout is required to generate a ChangeLog >&2; \
22 # use recursive makes in order to ignore errors during check/perf
24 -$(MAKE) $(AM_MAKEFLAGS) check
25 $(MAKE) $(AM_MAKEFLAGS) genlcov
27 # we have to massage the lcov.info file slightly to hide the effect of libtool
28 # placing the objects files in the .libs/ directory separate from the *.c
30 $(LTP) --directory $(top_builddir) --capture --output-file json-lcov.info --test-name JSON_TEST --no-checksum
31 $(SED) -e 's#.libs/##' < json-lcov.info > json-lcov.info.tmp
32 LANG=C $(LTP_GENHTML) --prefix $(top_builddir) --output-directory json-lcov --title "JSON-GLib Code Coverage" --show-details json-lcov.info.tmp
33 rm -f json-lcov.info.tmp
36 -$(LTP) --directory $(top_builddir) -z
37 -$(RM) -rf json-lcov.info json-lcov
39 lcov genlcov lcov-clean:
40 @echo You need to configure JSON-GLib with support for gcov enabled.
41 @echo e.g., ./configure --enable-gcov
44 .PHONY: lcov genlcov lcov-clean