From 71064d3871efec50ec6c9893d1ed43e8a6dc9d52 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 25 Oct 2006 06:52:37 +0000 Subject: [PATCH] If there is already a set of HTML docs built in the tarball, there is no need to build them again git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- debian/rules | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/debian/rules b/debian/rules index 200fbb9876..f1567d5f44 100755 --- a/debian/rules +++ b/debian/rules @@ -463,20 +463,26 @@ build-gtk-py-stamp: build-gtk-shared-stamp purge-dbg-py build-doc-stamp: build-gtk-shared-stamp dh_testdir - cd $(objdir_gtk_shared)/utils/tex2rtf/src && $(FAST_MAKE) - rm -rf $(objdir_doc) - rm -rf $(objdir_doc_cruft) - mkdir $(objdir_doc) - mkdir $(objdir_doc_cruft) - cd $(objdir_doc_cruft) \ - && LD_LIBRARY_PATH=../$(objdir_gtk_shared)/lib:$(LD_LIBRARY_PATH) \ - ../$(objdir_gtk_shared)/utils/tex2rtf/src/tex2rtf \ - ../docs/latex/wx/manual.tex \ - ../$(objdir_doc)/wx$(release)-manual.html \ - -twice -html - cp docs/latex/wx/*.gif $(objdir_doc) - rm -rf $(objdir_doc_cruft) - rm -f $(objdir_doc)/wx$(release)-manual.{con,hh*,htx,ref} + mkdir $(objdir_doc); + # the tarball may already have the generated docs in it + if [ ! -e docs/html/wx/index.html ]; then \ + cd $(objdir_gtk_shared)/utils/tex2rtf/src && $(FAST_MAKE); \ + rm -rf $(objdir_doc); \ + rm -rf $(objdir_doc_cruft); \ + mkdir $(objdir_doc_cruft); \ + cd $(objdir_doc_cruft); \ + LD_LIBRARY_PATH=../$(objdir_gtk_shared)/lib:$(LD_LIBRARY_PATH) \ + ../$(objdir_gtk_shared)/utils/tex2rtf/src/tex2rtf \ + ../docs/latex/wx/manual.tex \ + ../$(objdir_doc)/wx$(release)-manual.html \ + -twice -html; \ + cp docs/latex/wx/*.gif $(objdir_doc); \ + rm -rf $(objdir_doc_cruft); \ + rm -f $(objdir_doc)/wx$(release)-manual.{con,hh*,htx,ref}; \ + else \ + cp docs/html/wx/* $(objdir_doc); \ + mv $(objdir_doc)/index.html $(objdir_doc)/wx-$(release)-manual_contents.html; \ + fi touch $@ build-examples-stamp: build-gtk-shared-stamp -- 2.45.2