build: Remove bin/ and lib/ as part of scons clean

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-06-02 12:00:34 -04:00
parent 304e8005f1
commit 698ed1508a
1 changed files with 7 additions and 1 deletions

View File

@ -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):