Release 2.0.3
[profile/ivi/libgsignon-glib.git] / Makefile.in
index 9c457e7..88cf522 100644 (file)
@@ -109,7 +109,7 @@ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
        distdir dist dist-all distcheck
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = libgsignon-glib docs pygobject tests
+DIST_SUBDIRS = libgsignon-glib docs examples pygobject tests
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
 top_distdir = $(distdir)
@@ -302,7 +302,8 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
        --enable-gtk-doc \
        --enable-introspection=yes
 
-SUBDIRS = libgsignon-glib docs $(am__append_1) $(am__append_2)
+SUBDIRS = libgsignon-glib docs examples $(am__append_1) \
+       $(am__append_2)
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_in_files = libgsignon-glib.pc.in
 pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
@@ -856,6 +857,9 @@ uninstall-am: uninstall-pkgconfigDATA
 
 
 dist-hook: git-changelog-hook
+       @echo
+       @echo "==== Run 'make update-online-doc' to update online documentation ===="
+       @echo
 
 git-changelog-hook: Makefile
        $(AM_V_at)if $(top_srcdir)/build-aux/missing --run git \
@@ -870,6 +874,25 @@ valgrind:
 
 .PHONY:  git-changelog-hook
 
+update-online-doc:
+       @tar zxf $(PACKAGE)-$(VERSION).tar.gz && \
+       pushd . > /dev/null && \
+       cd .. && \
+       git clone https://code.google.com/p/accounts-sso.gsignon-docs/ ; \
+       cd accounts-sso.gsignon-docs && \
+       git pull ; \
+       mkdir -p $(PACKAGE) && \
+       rm -rf $(PACKAGE)/* && \
+       popd > /dev/null && \
+       cp -rf $(PACKAGE)-$(VERSION)/docs/reference/html/* ../accounts-sso.gsignon-docs/$(PACKAGE)/ && \
+       pushd . > /dev/null && \
+       cd ../accounts-sso.gsignon-docs && \
+       git add $(PACKAGE)/* && \
+       git commit -m "Updated documentation for $(PACKAGE) to version $(VERSION)" && \
+       git push ; \
+       popd > /dev/null && \
+       rm -rf $(PACKAGE)-$(VERSION)
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT: