Centralize definition of doc dirs to distclean.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Mon, 1 Aug 2011 21:45:17 +0000 (14:45 -0700)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Mon, 1 Aug 2011 21:46:16 +0000 (14:46 -0700)
docs/Makefile.am

index 57a59a7..5306c74 100644 (file)
@@ -1,3 +1,9 @@
+distclean_dirs = \
+       folks \
+       folks-telepathy \
+       gtk-doc \
+       $(NULL)
+
 folksdocdir=$(datadir)/devhelp/references/folks
 folksimgdir=$(datadir)/devhelp/references/folks/img
 folkstelepathydocdir=$(datadir)/devhelp/references/folks-telepathy
@@ -117,9 +123,7 @@ folks-telepathy-gtk-doc: $(folks_telepathy_doc_files)
 
 distclean-local: distclean-docs
 distclean-docs:
-       rm -rf folks && \
-       rm -rf folks-telepathy && \
-       rm -rf gtk-doc
+       rm -rf $(distclean_dirs)
 
 GITIGNOREFILES = \
        folks/ \