excluding "generated" dirs when building targets.mk
This commit is contained in:
parent
595bdfd7a3
commit
2333135720
@ -53,6 +53,9 @@ class TargetMaker(object):
|
|||||||
def _add_deps_from_alt_source_file_extensions(self, as_swf, rel_mxml):
|
def _add_deps_from_alt_source_file_extensions(self, as_swf, rel_mxml):
|
||||||
basedir = dirname(rel_mxml)
|
basedir = dirname(rel_mxml)
|
||||||
for dirpath, dirnames, filenames in os.walk(basedir):
|
for dirpath, dirnames, filenames in os.walk(basedir):
|
||||||
|
for i, directory in enumerate(dirnames):
|
||||||
|
if directory == 'generated':
|
||||||
|
dirnames.pop(i)
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if ext(filename) in self._source_fileexts:
|
if ext(filename) in self._source_fileexts:
|
||||||
rel_source = relpath(pathjoin(dirpath, filename), HERE)
|
rel_source = relpath(pathjoin(dirpath, filename), HERE)
|
||||||
|
Loading…
Reference in New Issue
Block a user