-AC_CONFIG_FILES([Makefile
- src/Makefile
- src/icons/Makefile
- po/Makefile.in
- test/Makefile
- help/Makefile
- doc/Makefile
- doc/examples/Makefile])
-if test x$enable_gtk_doc = xyes; then
-AC_CONFIG_FILES([doc/reference/Makefile])
-fi
+AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+ src/icons/Makefile
+ po/Makefile.in
+ data/Makefile
+ test/Makefile])
+AM_COND_IF([VIKING_DOC],
+ [AC_CONFIG_FILES([
+ help/Makefile
+ doc/Makefile
+ doc/reference/Makefile
+ doc/examples/Makefile])])
+