-SUBDIRS = lib cut-n-paste data backend po pdf ps pixbuf shell thumbnailer
+SUBDIRS = lib cut-n-paste backend po help data
+
+# Backends
+
+SUBDIRS += pdf ps pixbuf
+
+if ENABLE_DJVU
+ SUBDIRS += djvu
+endif
+
+if ENABLE_DVI
+ SUBDIRS += dvi
+endif
+
+# Applications
+
+SUBDIRS += shell thumbnailer
intltool_extra = intltool-extract.in intltool-merge.in intltool-update.in