[beast] DOCS: Create html/ directory whenever we write to it.



commit d6fd669910cc0d797b165858bb5be3b613f31ea4
Author: Stefan Westerfeld <stefan space twc de>
Date:   Tue May 18 23:42:30 2010 +0200

    DOCS: Create html/ directory whenever we write to it.
    
    This patch was created because a user reported that Makefile rules seemed to be
    executed in a different order, so that
    
      cp ./imports/beastdocs.css ... html/
    
    failed.

 docs/Makefile.am |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/docs/Makefile.am b/docs/Makefile.am
index cbf36b6..a6ac700 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -93,6 +93,7 @@ html/style/%: $(top_srcdir)/web/style/%
 	@mkdir -p html/style/
 	cp $< $@
 html/style/doxer-style.css: @DOXRULE@
+	@mkdir -p html/style/
 	$(DOXER) writecss -d html/style/
 
 # MAN generation rules
@@ -108,17 +109,21 @@ mans/%.5: @DOXRULE@ %.5.doxi
 
 # HTML generation rules
 html/%.1.html: @DOXRULE@ %.1.doxi
+	@mkdir -p html/
 	$(DOXER) doxi2htmlman $< -d html/ $(DOXIDEFS)
 html/%.3.html: @DOXRULE@ %.3.doxi
+	@mkdir -p html/
 	$(DOXER) doxi2htmlman $< -d html/ $(DOXIDEFS)
 html/%.html: @DOXRULE@ %.doxi
 	@mkdir -p html/
 	$(DOXER) doxi2html $< -d html/ $(DOXIDEFS)
 html/%.html: @DOXRULE@ gendoxi/%.doxi
+	@mkdir -p html/
 	$(DOXER) doxi2html $< -d html/ $(DOXIDEFS)
 
 # HTML import rules
 ${HTML_IMPORTS}:
+	@mkdir -p html/
 	cp $(subst html/, ${srcdir}/imports/, ${HTML_IMPORTS}) html/
 
 # Generated .doxi files



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]