From 698ed1508aeb6f8698fd882208287c164fc5c031 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sat, 2 Jun 2012 12:00:34 -0400 Subject: [PATCH] build: Remove bin/ and lib/ as part of scons clean Signed-off-by: Bryan Schumaker --- Sconstruct | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sconstruct b/Sconstruct index 81304106..23ba4ec7 100644 --- a/Sconstruct +++ b/Sconstruct @@ -22,6 +22,12 @@ env.Append(CPPPATH = "include") config.env = env +# Make sure these directories exist before doing anything +if not os.path.exists("bin"): + os.mkdir("bin") +if not os.path.exists("lib"): + os.mkdir("lib") + def directory(dirs): objs = [] for dir in dirs: @@ -63,7 +69,7 @@ env.Alias("install", dirs) env.Command("uninstall", None, Delete(FindInstalledFiles())) # Clean up the build directory -Clean(ocarina, ["include/version.h", "bin/", "lib/"]) +clean = Clean(ocarina, ["include/version.h", "bin/", "lib/"]) # Create a tarball def git_archive(target, source, env):