浏览代码

doc: revert #19912, install html version of the documentation (thanks to Brice Goglin for the tip to get make distcheck happy)

Nathalie Furmento 8 年之前
父节点
当前提交
f81b6ab590
共有 1 个文件被更改,包括 9 次插入11 次删除
  1. 9 11
      doc/doxygen/Makefile.am

+ 9 - 11
doc/doxygen/Makefile.am

@@ -27,25 +27,23 @@ DOX_LATEX_DIR = latex
 DOX_PDF = $(DOX_DIR)/starpu.pdf
 DOX_TAG = starpu.tag
 
-txtdir   = ${docdir}/manual
+txtdir   = $(docdir)/manual
 
 if BUILD_DOC
 all: $(DOX_HTML_DIR) $(DOX_PDF)
 EXTRA_DIST = $(DOX_HTML_DIR) $(DOX_PDF)
 txt_DATA = $(DOX_PDF)
-#install-exec-hook:
-#	$(MKDIR_P) $(docdir)/manual/html
-#	(cd $(DOX_HTML_DIR) && find . -type f -exec $(INSTALL) -c -m 644 {} $(docdir)/manual/html \;)
+DOX_HTML_SRCDIR=$(DOX_HTML_DIR)
 else
-EXTRA_DIST = $(top_srcdir)/doc/doxygen/starpu.pdf $(top_srcdir)/doc/doxygen/html
+EXTRA_DIST = $(top_srcdir)/doc/doxygen/html $(top_srcdir)/doc/doxygen/starpu.pdf
 txt_DATA = $(top_srcdir)/doc/doxygen/starpu.pdf
-#install-exec-hook:
-##	$(MKDIR_P) $(docdir)/manual/html
-#	(cd $(top_srcdir)/doc/doxygen/html && find . -type f -exec $(INSTALL) -c -m 644 {} $(docdir)/manual/html \;)
+DOX_HTML_SRCDIR=$(top_srcdir)/doc/doxygen/html
 endif
-#uninstall-hook:
-#	chmod -R u+w $(docdir)/manual/html
-#	rm -rf $(docdir)/manual/html
+install-exec-hook:
+	$(MKDIR_P) $(DESTDIR)$(docdir)/manual/html
+	(cd $(DOX_HTML_SRCDIR) && find . -type f -exec $(INSTALL) -c -m 644 {} $(DESTDIR)$(docdir)/manual/html \;)
+uninstall-hook:
+	rm -rf $(DESTDIR)$(docdir)/manual/html
 
 chapters =	\
 	chapters/000_introduction.doxy		\