aboutsummaryrefslogtreecommitdiff
path: root/win/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'win/build.py')
-rw-r--r--win/build.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/win/build.py b/win/build.py
index f42715b..3a9fbc7 100644
--- a/win/build.py
+++ b/win/build.py
@@ -1,4 +1,4 @@
-import os
+import os, sys
from wb import system, config, home_fn, cd_home
os.environ['PATH'] += ";%s\\VC" % (os.path.normpath(config['MSVC']),)
@@ -10,6 +10,13 @@ def main():
cd_home()
build_vc("nmake /f %s" % (home_fn('msvc.mak'),))
+def clean():
+ cd_home()
+ build_vc("nmake /f %s clean" % (home_fn('msvc.mak'),))
+
# if we are run directly, and not loaded as a module
if __name__ == "__main__":
- main()
+ if len(sys.argv) == 2 and sys.argv[1] == 'clean':
+ clean()
+ else:
+ main()