build: Remove bin/ and lib/ as part of scons clean
Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
304e8005f1
commit
698ed1508a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue