fix the yaml configure part
[hkl.git] / Makefile.am
blobde5eb72f65da5a0f7c1d9e745824678799cfff1b
1 ## Process this file with automake to produce Makefile.in
3 ACLOCAL_AMFLAGS = -I m4
4 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
6 SUBDIRS = ccan hkl
7 if HKL3D
8 SUBDIRS += hkl3d data
9 endif
10 if GUI
11 SUBDIRS += gui
12 endif
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
22 ## lcov part
23 .PHONY: lcov genlcov lcov-clean
24 # use recursive makes in order to ignore errors during check
25 lcov:
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
32 genlcov:
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
37 lcov-clean:
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.
46 dist-hook:
47         @if test -d "$(srcdir)/.git"; \
48         then \
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 ); \
56         else \
57                 echo A git clone is required to generate a ChangeLog >&2; \
58         fi