From d19b1069bcc5f7699e1efb26bbfbad820ceb155c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Briano?= Date: Wed, 3 Aug 2011 01:21:26 +0000 Subject: [PATCH] And somehow match the doc generation to the other projects SVN revision: 62027 --- legacy/ethumb/configure.ac | 1 + legacy/ethumb/doc/{Doxyfile => Doxyfile.in} | 10 ++++----- legacy/ethumb/doc/Makefile.am | 23 +++++++++++++++------ 3 files changed, 23 insertions(+), 11 deletions(-) rename legacy/ethumb/doc/{Doxyfile => Doxyfile.in} (99%) diff --git a/legacy/ethumb/configure.ac b/legacy/ethumb/configure.ac index 2d423b6b36..9d6b907982 100644 --- a/legacy/ethumb/configure.ac +++ b/legacy/ethumb/configure.ac @@ -227,6 +227,7 @@ data/Makefile data/frames/Makefile m4/Makefile doc/Makefile +doc/Doxyfile ]) AC_OUTPUT diff --git a/legacy/ethumb/doc/Doxyfile b/legacy/ethumb/doc/Doxyfile.in similarity index 99% rename from legacy/ethumb/doc/Doxyfile rename to legacy/ethumb/doc/Doxyfile.in index 0000517043..d3b01b55f8 100644 --- a/legacy/ethumb/doc/Doxyfile +++ b/legacy/ethumb/doc/Doxyfile.in @@ -31,7 +31,7 @@ PROJECT_NAME = Ethumb # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = +PROJECT_NUMBER = @PACKAGE_VERSION@ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. @@ -513,7 +513,7 @@ WARN_LOGFILE = # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = ../src/lib +INPUT = @top_srcdir@/src/lib # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is @@ -720,13 +720,13 @@ HTML_FILE_EXTENSION = .html # each generated HTML page. If it is left blank doxygen will generate a # standard header. -HTML_HEADER = head.html +HTML_HEADER = @srcdir@/head.html # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. -HTML_FOOTER = foot.html +HTML_FOOTER = @srcdir@/foot.html # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to @@ -735,7 +735,7 @@ HTML_FOOTER = foot.html # the style sheet file to the HTML output directory, so don't put your own # stylesheet in the HTML output directory as well, or it will be erased! -HTML_STYLESHEET = e.css +HTML_STYLESHEET = @srcdir@/e.css # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to diff --git a/legacy/ethumb/doc/Makefile.am b/legacy/ethumb/doc/Makefile.am index ff2628cbe0..7a6ce08e78 100644 --- a/legacy/ethumb/doc/Makefile.am +++ b/legacy/ethumb/doc/Makefile.am @@ -3,12 +3,26 @@ MAINTAINERCLEANFILES = Makefile.in .PHONY: doc +PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc + if EFL_BUILD_DOC -doc: all - rm -rf html/ latex/ man/ +doc-clean: + rm -rf html/ latex/ man/ xml/ $(PACKAGE_DOCNAME).tar* + +doc: all doc-clean $(efl_doxygen) - cp img/* html/ + cp $(srcdir)/img/* html/ + cp $(srcdir)/img/* latex/ + rm -rf $(PACKAGE_DOCNAME).tar* + mkdir -p $(PACKAGE_DOCNAME)/doc + cp -R html/ latex/ man/ $(PACKAGE_DOCNMAE)/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 @@ -17,7 +31,4 @@ doc: endif -clean-local: - @rm -rf html/ latex/ man/ - EXTRA_DIST = Doxyfile $(wildcard img/*.*) e.css head.html foot.html