From a225e9ef4a27c1192447262d702073b157c0a604 Mon Sep 17 00:00:00 2001 From: alegrand Date: Mon, 31 Jan 2005 21:30:06 +0000 Subject: [PATCH 1/1] Now the documentation is correctly installed git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@825 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- Makefile.am | 2 +- doc/Makefile.am | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index ad8ae07ceb..1c0fac922c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS= include src examples doc testsuite doc +SUBDIRS= include src examples testsuite doc DISTCLEANFILES = *~ ACLOCAL = aclocal -I acmacro -I /usr/share/aclocal/gnome2-macros diff --git a/doc/Makefile.am b/doc/Makefile.am index aa68e1142f..0131c53663 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -6,6 +6,7 @@ EXTRA_DIST = html Doxyfile.API Doxyfile.Examples Doxyfile.main \ DISTCLEANFILES = api_index.doc MAINTAINERCLEANFILES = html +if MAINTAINER_MODE html: $(DOCSOURCES) Doxyfile.API Doxyfile.Examples Doxyfile.main touch api_index.doc doxygen Doxyfile.main @@ -19,5 +20,22 @@ html: $(DOCSOURCES) Doxyfile.API Doxyfile.Examples Doxyfile.main # @cd html ; @top_srcdir@/tools/fix_doxygen2.pl `find . -name '*.html'` # @rm -rf html/API html/examples # for i in `find doc/html -name "*.html" -exec grep -l "group_[^_]" {} \;` ; do tools/fix_doxygen.pl $$i; rm $$i.bak; done +endif + +install-data-local: + @for file in `find html/ -type d` ; do \ + echo "test -z \"$(prefix)/doc/simgrid/$$file\" || $(mkdir_p) \"$(prefix)/doc/simgrid/$$file\"";\ + test -z "$(prefix)/doc/simgrid/$$file" || $(mkdir_p) "$(prefix)/doc/simgrid/$$file";\ + done + @for file in `find html/ -type f` ; do \ + echo " $(INSTALL_DATA) '$$file' '$(prefix)/doc/simgrid/$$file'";\ + $(INSTALL_DATA) $$file $(prefix)/doc/simgrid/$$file ;\ + done + +uninstall-local: + for file in `find html/ -type f` ; do \ + echo " rm -f '$(prefix)/doc/simgrid/$$file'";\ + rm -f $(prefix)/doc/simgrid/$$file ;\ + done .PHONY: html -- 2.20.1