Makefile.am

branch
soc.2013.gobjectification.plugins
changeset 37121
fba6e5400a2a
parent 37115
7004e53e3495
parent 35606
b6d82f891592
child 37127
50a4881a4041
--- a/Makefile.am	Sun Feb 23 02:43:05 2014 +0530
+++ b/Makefile.am	Tue Feb 25 20:08:45 2014 +0530
@@ -21,6 +21,31 @@
 
 noinst_HEADERS = config.h package_revision.h
 
+dist-pre-hook: package_revision.h
+if !ENABLE_GTK_DOC
+	$(AM_V_at)echo "error: gtk-doc must be installed and enabled in order to make dist"
+	$(AM_V_at)echo "re-run ./configure with --enable-gtk-doc switch and try again"
+	$(AM_V_at)false
+endif
+	$(AM_V_at)if [ ! -f "$(top_builddir)libpurple/libpurple.la" ]; then \
+		$(MAKE) -C libpurple libpurple.la; \
+	fi
+if ENABLE_GNT
+	$(AM_V_at)if [ ! -f "$(top_builddir)finch/libgnt/libgnt.la" ]; then \
+		$(MAKE) -C finch/libgnt libgnt.la; \
+	fi
+	$(AM_V_at)if [ ! -f "$(top_builddir)finch/libfinch.la" ]; then \
+		$(MAKE) -C finch libfinch.la; \
+	fi
+endif
+if ENABLE_GTK
+	$(AM_V_at)if [ ! -f "$(top_builddir)pidgin/libpidgin.la" ]; then \
+		$(MAKE) -C pidgin libpidgin.la; \
+	fi
+endif
+
+dist: dist-pre-hook
+
 dist-hook:
 	rm $(distdir)/config.h
 
@@ -123,10 +148,7 @@
 # line does is tell 'distcheck' to shut up and ignore those two files.
 distcleancheck_listfiles = find . -type f -a ! -name package_revision.h
 
-DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
-if PLUGINS
-DISTCHECK_CONFIGURE_FLAGS += --enable-introspection
-endif
+AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
 
 SUBDIRS = . m4macros libpurple $(GNT_DIR) $(GTK_DIR) $(PO_DIR) share/ca-certs share/sounds doc
 

mercurial