comparison mxtool/mx.py @ 7778:6b540bb82312

Fixed clean should clean also generated source directories.
author Christian Humer <christian.humer@gmail.com>
date Tue, 12 Feb 2013 14:33:24 +0100
parents f81be78f15a5
children 2865133eeef2
comparison
equal deleted inserted replaced
7777:ca51efac4d57 7778:6b540bb82312
1800 if p.native: 1800 if p.native:
1801 if args.native: 1801 if args.native:
1802 run([gmake_cmd(), '-C', p.dir, 'clean']) 1802 run([gmake_cmd(), '-C', p.dir, 'clean'])
1803 else: 1803 else:
1804 if args.java: 1804 if args.java:
1805 genDir = p.source_gen_dir();
1806 if genDir != '' and exists(genDir):
1807 log('Clearing {0}...'.format(genDir))
1808 for f in os.listdir(genDir):
1809 shutil.rmtree(join(genDir, f))
1810
1811
1805 outputDir = p.output_dir() 1812 outputDir = p.output_dir()
1806 if outputDir != '' and exists(outputDir): 1813 if outputDir != '' and exists(outputDir):
1807 log('Removing {0}...'.format(outputDir)) 1814 log('Removing {0}...'.format(outputDir))
1808 shutil.rmtree(outputDir) 1815 shutil.rmtree(outputDir)
1809 1816