Skip to content

Commit edd3772

Browse files
Prasanna Santhanamsudison
authored andcommitted
distclean target for waf to remove old build artifacts
1 parent 39472bc commit edd3772

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎wscript‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ for pattern in ["**/.project","**/.classpath","**/.pydevproject"]: Node.exclude_
8383

8484
# Support functions
8585

86+
def distclean(ctx):
87+
"""Clear the build artifacts"""
88+
for root, folder, files in os.walk(blddir):
89+
for f in files:
90+
path = os.path.join(root, f)
91+
print "Removing artifact %s"%path
92+
os.remove(path)
93+
8694
def inspectobj(x):
8795
"""Look inside an object"""
8896
for m in dir(x): print m,": ",getattr(x,m)

0 commit comments

Comments
 (0)