Split the GCR and GCK libraries out of gnome-keyring
[platform/upstream/gcr.git] / Makefile.am
1 SUBDIRS = \
2         . \
3         egg \
4         gck \
5         gcr \
6         schema \
7         testing \
8         po \
9         docs
10
11 ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
12
13 EXTRA_DIST = \
14         intltool-extract.in \
15         intltool-merge.in \
16         intltool-update.in \
17         HACKING
18
19 DISTCHECK_CONFIGURE_FLAGS = \
20         --enable-gtk-doc \
21         --enable-strict \
22         --disable-coverage \
23         --disable-update-mime \
24         --with-pkcs11-modules=$(abs_srcdir)/$(top_distdir)/_inst/lib/
25
26 DISTCLEANFILES = \
27         intltool-extract \
28         intltool-merge \
29         intltool-update
30
31 dist-hook:
32         @if test -d "$(srcdir)/.git"; \
33         then \
34                 echo Creating ChangeLog && \
35                 ( cd "$(top_srcdir)" && \
36                   echo '# Generate automatically. Do not edit.'; echo; \
37                   $(top_srcdir)/missing --run git log --stat --date=short ) > ChangeLog.tmp \
38                 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
39                 || ( rm -f ChangeLog.tmp ; \
40                      echo Failed to generate ChangeLog >&2 ); \
41         else \
42                 echo A git clone is required to generate a ChangeLog >&2; \
43         fi
44
45 if WITH_COVERAGE
46 coverage:
47         mkdir -p testing/coverage
48         $(LCOV) --directory docs/ --zerocounters
49         $(LCOV) --directory . --capture --output-file testing/coverage.info
50         $(GENHTML) --output-directory testing/coverage testing/coverage.info
51         $(LCOV) --directory . --zerocounters
52         @echo "file://$(abs_top_builddir)/testing/coverage/index.html"
53
54 clear-coverage:
55         $(LCOV) --directory . --zerocounters
56
57 endif