From 20112c4556fd7ec56f71d3f77a3734c6d47c013d Mon Sep 17 00:00:00 2001 From: Josh Bartel Date: Wed, 4 Jun 2014 08:51:18 -0500 Subject: [PATCH] doxygen: Ensure output directory is created Ensure the output directory is always created to avoid issues when trying to install on a clean build. Change-Id: I64be30348af7862971cbbc1f17bc53213b9998f3 Type: Bug Fix Signed-off-by: Thomas Nagy --- waflib/extras/doxygen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/waflib/extras/doxygen.py b/waflib/extras/doxygen.py index 525171ed..0bdee77f 100644 --- a/waflib/extras/doxygen.py +++ b/waflib/extras/doxygen.py @@ -78,9 +78,12 @@ class doxygen(Task.Task): self.pars = parse_doxy(txt) if self.pars.get('OUTPUT_DIRECTORY'): # Use the path parsed from the Doxyfile as an absolute path - self.pars['OUTPUT_DIRECTORY'] = self.inputs[0].parent.get_bld().make_node(self.pars['OUTPUT_DIRECTORY']).abspath() + output_node = self.inputs[0].parent.get_bld().make_node(self.pars['OUTPUT_DIRECTORY']) + output_node.mkdir() + self.pars['OUTPUT_DIRECTORY'] = output_node.abspath() else: # If no OUTPUT_PATH was specified in the Doxyfile build path from where the Doxyfile lives + self.inputs[0].parent.get_bld().mkdir() self.pars['OUTPUT_DIRECTORY'] = self.inputs[0].parent.get_bld().abspath() # Override with any parameters passed to the task generator