Add gir and .vapi files to DISTCLEANFILES if not building a release
authorJeremy Whiting <jpwhiting@kde.org>
Fri, 6 Jul 2012 20:21:02 +0000 (14:21 -0600)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 14 Aug 2012 20:02:37 +0000 (21:02 +0100)
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=643128

backends/telepathy/lib/Makefile.am
configure.ac
tests/lib/telepathy/contactlist/Makefile.am

index 103f3de..5d04519 100644 (file)
@@ -98,6 +98,10 @@ dist_noinst_DATA = \
        tp-lowlevel.vapi \
        $(NULL)
 
+if NOT_RELEASE
+DISTCLEANFILES = $(dist_noinst_DATA)
+endif
+
 folks_telepathy_valasources = \
        tpf-persona.vala \
        tpf-persona-store.vala \
index 6394bde..dc5f4a8 100644 (file)
@@ -291,6 +291,8 @@ AM_CONDITIONAL([HAVE_VALA], [test "x$enable_vala" = "xyes"])
 AC_CHECK_FUNCS([memset])
 AC_CHECK_FUNCS([strstr])
 
+AM_CONDITIONAL([NOT_RELEASE], [test "x$folks_released" = "x0"])
+
 # -----------------------------------------------------------
 # Backends
 # -----------------------------------------------------------
index e429abc..368364e 100644 (file)
@@ -102,6 +102,10 @@ DISTCLEANFILES = \
        session.conf \
        $(NULL)
 
+if NOT_RELEASE
+DISTCLEANFILES += $(dist_noinst_DATA)
+endif
+
 EXTRA_DIST = \
        manager-file.py \
        session.conf.in \