Update to upstream 1.0.1
[profile/ivi/gsignond.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 # --enable-distcheck is here to make it possible to use
4 # also --enable-dbus-type=session here
5 AM_DISTCHECK_CONFIGURE_FLAGS = \
6     --enable-debug \
7     --enable-gtk-doc \
8     --enable-distcheck
9
10 pkgconfigdir = $(libdir)/pkgconfig
11 pkgconfig_DATA = gsignond.pc
12
13 sysconf_DATA = gsignond.conf
14
15 SUBDIRS = src test docs
16
17 EXTRA_DIST = dists tools
18
19 valgrind:
20         cd test; make valgrind
21         
22 dist-hook:
23         @echo
24         @echo "==== Run 'make update-online-doc' to update online documentation ===="
25         @echo
26
27 update-online-doc:
28         @tar zxf $(PACKAGE)-$(VERSION).tar.gz && \
29         pushd . > /dev/null && \
30         cd .. && \
31         git clone https://code.google.com/p/accounts-sso.gsignon-docs/ ; \
32         cd accounts-sso.gsignon-docs && \
33         git pull ; \
34         mkdir -p $(PACKAGE) && \
35         rm -rf $(PACKAGE)/* && \
36         popd > /dev/null && \
37         cp -rf $(PACKAGE)-$(VERSION)/docs/html/* ../accounts-sso.gsignon-docs/$(PACKAGE)/ && \
38         pushd . > /dev/null && \
39         cd ../accounts-sso.gsignon-docs && \
40         git add $(PACKAGE)/* && \
41         git commit -m "Updated documentation for $(PACKAGE) to version $(VERSION)" && \
42         git push ; \
43         popd > /dev/null && \
44         rm -rf $(PACKAGE)-$(VERSION)
45
46 lcov: check
47         @rm -rf lcov-report
48         @lcov -c --directory src/ --output-file lcov.output
49         @genhtml lcov.output --output-directory lcov-report
50         @rm lcov.output
51         @echo "Coverage report is in file://$(abs_srcdir)/lcov-report/index.html"