-SUBDIRS = src test data doc po help
+# Optionally build documentation bits
+if VIKING_DOC
+ DO_DOCS = "help doc"
+endif
+SUBDIRS = src test data po $(DO_DOCS)
INTLTOOL = \
intltool-extract.in \
DISTCHECK_CONFIGURE_FLAGS = \
--disable-scrollkeeper
+
+# Ignore gtk theme cache files on distcheck
+distuninstallcheck_listfiles = find . -type f -print | grep -v 'icon-theme.cache'