浏览代码

doc/doxygen/Makefile.am: fix when documentation is not built

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

+ 3 - 1
doc/doxygen/Makefile.am

@@ -162,6 +162,7 @@ chapters/version.html: $(chapters)
 		if test -f $$f ; then $(RM) $$f ; fi ;\
 	done
 
+if BUILD_DOC
 EXTRA_DIST	= 					\
 	$(chapters) 					\
 	chapters/version.sty				\
@@ -209,6 +210,7 @@ EXTRA_DIST	= 					\
 	doxygen.cfg 					\
 	refman.tex					\
 	$(DOX_HTML_DIR)
+endif
 
 dox_inputs = $(DOX_CONFIG) 				\
 	$(chapters) 					\
@@ -277,7 +279,7 @@ $(DOX_TAG): $(dox_inputs)
 	@cat $(top_srcdir)/doc/doxygen/refman.tex >> $(DOX_LATEX_DIR)/refman.tex
 
 if BUILD_DOC
-dist_pdf_DATA = $(DOX_PDF)
+EXTRA_DIST += $(DOX_PDF)
 
 $(DOX_PDF): $(DOX_TAG) refman.tex
 	@cp $(top_srcdir)/doc/doxygen/chapters/version.sty $(DOX_LATEX_DIR)