1 ## Process this file with automake to produce Makefile.in
3 ACLOCAL_AMFLAGS = -I m4
4 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
13 SUBDIRS += test Documentation
15 EXTRA_DIST = hkl.pc.in hkl3d.pc.in
17 include_HEADERS = hkl.h
19 pkgconfigdir = $(libdir)/pkgconfig
20 pkgconfig_DATA = hkl.pc hkl3d.pc
23 .PHONY: lcov genlcov lcov-clean
24 # use recursive makes in order to ignore errors during check
26 -$(MAKE) $(AM_MAKEFLAGS) -k check
27 $(MAKE) $(AM_MAKEFLAGS) genlcov
29 # we have to massage the lcov.info file slightly to hide the effect of libtool
30 # placing the objects files in the .libs/ directory separate from the *.c
31 # we also have to delete tests/.libs/*.gcda
33 rm -f $(top_builddir)/test/hkl/.libs/*.gcda
34 $(LTP) --directory $(top_builddir) --capture --output-file hkl-lcov.info --test-name hkl-lcov --no-checksum --compat-libtool
35 LANG=C $(LTP_GENHTML) --prefix $(top_builddir) --output-directory hkl-lcov --title "hkl Code Coverage" --legend --show-details hkl-lcov.info
38 -$(LTP) --directory $(top_builddir) -z
39 -rm -rf hkl-lcov.info hkl-lcov
40 -find -name '*.gcda' -print | xargs rm
41 -find -name '*.gcno' -print | xargs rm
43 distclean-local: lcov-clean
45 ## Generate the Changelog file for the distribution.
47 @if test -d "$(srcdir)/.git"; \
49 echo Creating ChangeLog && \
50 ( cd "$(top_srcdir)" && \
51 echo '# Generated by Makefile. Do not edit.'; echo; \
52 $(top_srcdir)/config/missing --run git log --stat ) > ChangeLog.tmp \
53 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
54 || ( rm -f ChangeLog.tmp ; \
55 echo Failed to generate ChangeLog >&2 ); \
57 echo A git clone is required to generate a ChangeLog >&2; \