* make sure makesdna executable gets removed on scons clean.
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 28 Apr 2008 17:14:20 +0000 (17:14 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 28 Apr 2008 17:14:20 +0000 (17:14 +0000)
SConstruct

index dcb5cfef3eca2d41b595c961115f524da3eec6a7..78936a039c9a068f3aebccaa8fa7d1f76852507f 100644 (file)
@@ -273,6 +273,14 @@ if not quickie and do_clean:
             if os.path.exists(confile):
                 print "clean file %s"%confile
                 os.remove(confile)
+
+        if platform in ('win32-vc', 'win32-mingw'):
+            makesdnafile = B.root_build_dir+'makesdna.exe'
+        else:
+            makesdnafile = B.root_build_dir+'makesdna'
+        if os.path.exists(makesdnafile):
+            print "removing", makesdnafile
+            os.remove(makesdnafile)
         print B.bc.OKGREEN+'...done'+B.bc.ENDC
     else:
         print B.bc.HEADER+'Already Clean, nothing to do.'+B.bc.ENDC