ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src data
+SUBDIRS = src data doc
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess emotion.spec \
config.h.in config.sub configure install-sh \
ltconfig ltmain.sh missing mkinstalldirs \
- stamp-h.in emotion_docs.tar emotion_docs.tar.gz \
- emotion.c acconfig.h depcomp
+ stamp-h.in emotion_docs.tar \
+ emotion.c acconfig.h depcomp \
+ $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2
bin_SCRIPTS =
EXTRA_DIST = README AUTHORS COPYING COPYING-PLAIN \
- emotion.spec emotion.spec.in emotion.c.in gendoc Doxyfile \
+ emotion.spec emotion.spec.in emotion.c.in Doxyfile \
emotion.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = emotion.pc
+
+.PHONY: doc
+
+# Documentation
+
+doc:
+ @echo "entering doc/"
+ make -C doc doc
src/modules/gstreamer/Makefile
src/edje_external/Makefile
src/bin/Makefile
+doc/Makefile
+doc/Doxyfile
+doc/emotion.dox
data/Makefile
])
echo " Xattr................: ${have_xattr}"
echo " Eio..................: ${have_eio}"
echo
+echo "Documentation..........: ${build_doc}"
+echo
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"
echo " CFLAGS...............: $CFLAGS"
PROJECT_NAME = Emotion
-PROJECT_NUMBER =
-OUTPUT_DIRECTORY = doc
-INPUT = emotion.c
-IMAGE_PATH = doc/img
+PROJECT_NUMBER = @PACKAGE_VERSION@
+OUTPUT_DIRECTORY = .
+INPUT = emotion.dox \
+ @top_srcdir@/src/lib \
+ @srcdir@/examples.dox
+IMAGE_PATH = img
OUTPUT_LANGUAGE = English
GENERATE_HTML = YES
HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html
-HTML_HEADER = doc/head.html
-HTML_FOOTER = doc/foot.html
-HTML_STYLESHEET = doc/e.css
+HTML_HEADER = @srcdir@/head.html
+HTML_FOOTER = @srcdir@/foot.html
+HTML_STYLESHEET = @srcdir@/e.css
HTML_ALIGN_MEMBERS = YES
ENUM_VALUES_PER_LINE = 1
GENERATE_HTMLHELP = NO
EXCLUDE =
EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS =
-EXAMPLE_PATH =
+EXAMPLE_PATH = @top_srcdir@/src/examples
EXAMPLE_PATTERNS =
EXAMPLE_RECURSIVE = NO
INPUT_FILTER =
--- /dev/null
+MAINTAINERCLEANFILES = Makefile.in
+
+.PHONY: doc
+
+PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc
+
+if EFL_BUILD_DOC
+
+doc-clean:
+ rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*
+
+doc: all doc-clean
+ $(efl_doxygen)
+ cp $(srcdir)/img/* html/
+ rm -rf $(PACKAGE_DOCNAME).tar*
+ mkdir -p $(PACKAGE_DOCNAME)/doc
+ cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc
+ tar cf $(PACKAGE_DOCNAME).tar $(PACKAGE_DOCNAME)/
+ bzip2 -9 $(PACKAGE_DOCNAME).tar
+ rm -rf $(PACKAGE_DOCNAME)/
+ mv $(PACKAGE_DOCNAME).tar.bz2 $(top_builddir)
+
+clean-local: doc-clean
+
+else
+
+doc:
+ @echo "Documentation not built. Run ./configure --help"
+
+endif
+
+EXTRA_DIST = Doxyfile.in $(wildcard img/*.*) e.css head.html foot.html
--- /dev/null
+/**
+ * @file
+ * @brief Emotion Media Library
+ *
+ * These routines are used for Emotion.
+ */
+
+/**
+ *
+ * @mainpage Emotion Library Documentation
+ * @version @PACKAGE_VERSION@
+ * @author Carsten Haitzler <raster@rasterman.com>
+ * @author vtorri (Vincent Torri) <torri@maths.univ-evry.fr>
+ * @author Sebastian Dransfeld <sd@tango.flipp.net>
+ * @author captainigloo
+ * @date 2003-2011
+ *
+ * @section intro What is Emotion?
+ *
+ * A media object library for Evas and Ecore.
+ *
+ * @todo Complete documentation of API
+ *
+ */
+++ /dev/null
-/**
-@file
-@brief Emotion Media Library
-
-These routines are used for Emotion.
-*/
-
-/**
-
-@mainpage Emotion Library Documentation
-@image html emotion.png
-@version @VERSION@
-@author Carsten Haitzler <raster@rasterman.com>
-@date 2003-2004
-
-@section intro What is Emotion?
-
-A media object library for Evas and Ecore.
-
-@todo Complete documentation of API
-
-*/
+++ /dev/null
-#!/bin/sh
-cp ./emotion.c.in ./emotion.c
-for I in `find ./src/lib -name "Emotion.h" -print`; do
- cat $I >> ./emotion.c
-done
-#for I in `find ./src/lib -name "*.c" -print`; do
-# cat $I >> ./emotion.c
-#done
-rm -rf ./doc/html ./doc/latex ./doc/man
-doxygen
-cp doc/img/*.png doc/html/
-cp doc/img/*.gif doc/html/
-rm -f emotion_docs.tar emotion_docs.tar.gz
-tar -cvf emotion_docs.tar doc/html doc/man doc/latex
-gzip -9 emotion_docs.tar
-exit 0