WAF: handle the option --doxygen before building the entire project.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 27 Jul 2007 15:04:25 +0100
changeset 1717 61831be6aede
parent 1715 b51c9c412844
child 1718 b5de4e50a874
WAF: handle the option --doxygen before building the entire project.
wscript
--- a/wscript	Thu Jul 26 12:27:49 2007 +0100
+++ b/wscript	Fri Jul 27 15:04:25 2007 +0100
@@ -144,6 +144,10 @@
         run_shell()
         return
 
+    if Params.g_options.doxygen:
+        doxygen()
+        raise SystemExit(0)
+
     # process subfolders from here
     bld.add_subdirs('src')
     bld.add_subdirs('samples utils examples')
@@ -164,9 +168,6 @@
     if Params.g_options.lcov_report:
         lcov_report()
 
-    if Params.g_options.doxygen:
-        doxygen()
-
     if Params.g_options.run:
         run_program(Params.g_options.run, Params.g_options.command_template)
         raise SystemExit(0)