From: Travis Reitter Date: Fri, 13 May 2011 05:54:35 +0000 (-0700) Subject: Allow generated source files to exist after distcleancheck. X-Git-Tag: FOLKS_0_5_1~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07ce4077e62b4adbf3191249ddb355512cca5bde;p=platform%2Fupstream%2Ffolks.git Allow generated source files to exist after distcleancheck. It turns out to be nearly impossible to satisfy a standard distcleancheck with Vala and its automake support. This is specifically a work-around because there doesn't seem to be any obvious way to satisfy these requirements: * the release tarball can be built without gobject-introspection, valac, or vapigen * it's safe to run "make distclean" in the release tarball without suddenly requiring the tools listed above (due to generated files being removed) * "make distcheck" doesn't fail its "distcleancheck" phase due to the following files remaining after distclean: - tests/lib/telepathy/contactlist/tp-test-contactlist.gir - tests/lib/telepathy/contactlist/tp-test-contactlist.vapi - backends/telepathy/lib/tp-lowlevel.gir - backends/telepathy/lib/tp-lowlevel.vapi We've hit this last issue multiple times, and no fix seems to stick. So stripping out this check seems to be the best option (until we can remove the Vala/GObject-Introspection-free build requirement, when they've stabilized more and we don't depend upon the latest versions which may not be in all the major distros). --- diff --git a/Makefile.am b/Makefile.am index d5de991..a0540d4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,6 +54,10 @@ distclean-local: rm -f ChangeLog; \ fi +distcleancheck_listfiles = \ + find . -type f -exec sh -c 'test -f $(srcdir)/$$1 || echo $$1' \ + sh '{}' ';' + ChangeLog: @echo Creating $@ @if test -d "$(srcdir)/.git"; then \