include $(top_srcdir)/Makefile.decl
-
NULL =
+if ENABLE_DOC
+DOC_SUBDIR = \
+ doc \
+ $(NULL)
+endif
+
SUBDIRS = \
gee \
tests \
+ $(DOC_SUBDIR) \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
+AC_ARG_ENABLE(doc, AS_HELP_STRING([--enable-doc], [Enable documentation generation]), enable_doc=$enableval, enable_doc=no)
+AM_CONDITIONAL(ENABLE_DOC, test x$enable_doc = xyes)
+
+AS_IF([test "x$enable_doc" != xno],
+ [AC_PATH_PROG(VALADOC, valadoc, :)
+ AC_SUBST(VALADOC)
+ AS_IF([test "$VALADOC" = :],
+ [AC_MSG_ERROR([valadoc not found])])])
+
GLIB_REQUIRED=2.12.0
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
AC_CONFIG_FILES([Makefile
gee-1.0.pc
+ doc/Makefile
gee/Makefile
tests/Makefile])
--- /dev/null
+include $(top_srcdir)/Makefile.decl
+
+NULL =
+
+SRC_DIR = $(top_srcdir)/gee
+
+docdir=$(datadir)/devhelp/references/gee-1.0
+innerdocdir=$(datadir)/devhelp/references/gee-1.0/gee-1.0
+imgdir=$(datadir)/devhelp/references/gee-1.0/gee-1.0/img
+
+doc_data = \
+ gee-1.0/*.css \
+ gee-1.0/*.png \
+ $(NULL)
+
+doc_DATA = \
+ gee-1.0/index.html \
+ $(doc_data) \
+ $(NULL)
+
+innerdoc_DATA = \
+ gee-1.0/gee-1.0/index.htm \
+ gee-1.0/gee-1.0/*.html \
+ $(NULL)
+
+img_DATA = \
+ gee-1.0/gee-1.0/img/*.png \
+ $(NULL)
+
+$(doc_data) $(innerdoc_DATA) $(img_DATA): gee-1.0/index.html
+
+gee-1.0/index.html:
+ $(VALADOC) -o gee-1.0/ --wiki ./ --force -b $(top_srcdir) $(SRC_DIR)/*.vala
+
+EXTRA_DIST += \
+ index.wiki \
+ $(NULL)
\ No newline at end of file
--- /dev/null
+libgee is a collection library providing GObject-based interfaces and classes for commonly used data structures.
+
+libgee provides the following interfaces:
+ * Iterable
+ - Collection
+ - List
+ - Set
+ - Iterator
+ - Map