client-lib: fixed number of memory leaks and restructured test code a bit
[platform/upstream/libgsignon-glib.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 DISTCHECK_CONFIGURE_FLAGS = \
3         --enable-gtk-doc \
4         --enable-introspection=yes
5 SUBDIRS = libsignon-glib docs
6
7 if ENABLE_PYTHON
8 SUBDIRS += pygobject
9 endif
10
11 if ENABLE_TESTS
12 SUBDIRS += tests
13 endif
14
15 pkgconfigdir = $(libdir)/pkgconfig
16 pkgconfig_in_files = libsignon-glib.pc.in
17 pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
18
19 dist_noinst_DATA = \
20         $(libsignondoc_DATA) \
21         m4/introspection.m4
22
23 dist-hook: git-changelog-hook
24
25 git-changelog-hook: Makefile
26         $(AM_V_at)if $(top_srcdir)/build-aux/missing --run git \
27                 --git-dir=$(top_srcdir)/.git --work-tree=$(top_srcdir) log \
28                 --no-merges --date=short --pretty='tformat:%cd  %an  <%ae>%n%n%s%n%n%b' | \
29                 $(SED) -e '/[^  ]/,/^[  ]*$$/ !d' > .ChangeLog.tmp; \
30         then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
31         else rm -f .ChangeLog.tmp; exit 1; fi
32
33 DISTCLEANFILES = \
34         $(pkgconfig_DATA)
35
36 valgrind:
37         cd tests; make valgrind
38
39 .PHONY:  git-changelog-hook