--- docs/Makefile.am.old 2010-01-31 16:21:07.000000000 +0100 +++ docs/Makefile.am 2010-03-21 12:08:49.895213886 +0100 @@ -1,7 +1,6 @@ dist_man_MANS = dvdstyler.1 LINGUAS=de en ja ru -docdir=@datadir@/@PACKAGE@/docs doc_DATA = $(LINGUAS:%=help_%.zip) help%.zip: DVDStylerGuide%.xml @@ -14,8 +13,7 @@ html: $(LINGUAS:%=html_%) html%: DVDStylerGuide%.xml - rm -rf html$* - mkdir html$* - (cd html$* && $(XMLTO) --skip-validation htmlhelp ../DVDStylerGuide$*.xml && rm -f *.hh*) - mkdir html$*/images + t=`mktemp -d htmlXXXXXX` ; \ + (cd "$$t" && $(XMLTO) --skip-validation htmlhelp ../DVDStylerGuide$*.xml && rm -f *.hh*) ; \ + mkdir "$$t"/images cp images/*.png html$*/images/