wscript
changeset 6254 e794047931fb
parent 6214 3f7f94c78f0a
child 6274 3e8b3f2306c9
--- a/wscript	Mon Apr 19 19:41:00 2010 -0700
+++ b/wscript	Tue Apr 20 11:31:54 2010 +0100
@@ -784,6 +784,13 @@
         return
 
     prog = program_obj.path.find_or_declare(ccroot.get_target_name(program_obj)).abspath(env)
+
+    if not os.path.exists(prog):
+        Logs.error("print-introspected-doxygen has not been built yet."
+                   " You need to build ns-3 at least once before "
+                   "generating doxygen docs...")
+        raise SystemExit(1)
+
     out = open(os.path.join('doc', 'introspected-doxygen.h'), 'w')
 
     if subprocess.Popen([prog], stdout=out, env=proc_env).wait():