Bug 541774: IDL-parser cache and .pyc files are left behind by make clean. r=ted

This commit is contained in:
Mike Hommey 2010-04-10 16:02:45 -04:00
parent d219f2ae43
commit 2847154b39
2 changed files with 7 additions and 2 deletions

View File

@ -199,7 +199,7 @@ dom_quickstubs.cpp: $(srcdir)/dom_quickstubs.qsconf \
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/qsgen.py \
--idlpath=$(DEPTH)/dist/idl \
--cachedir=$(DEPTH)/xpcom/idl-parser \
--cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output dom_quickstubs.h \
--stub-output dom_quickstubs.cpp \
--makedepend-output $(MDDEPDIR)/dom_qsgen.pp \
@ -209,5 +209,10 @@ dom_quickstubs.cpp: $(srcdir)/dom_quickstubs.qsconf \
GARBAGE += \
dom_quickstubs.h \
dom_quickstubs.cpp \
xpidl_debug \
$(MDDEPDIR)/dom_qsgen.pp \
$(wildcard $(topsrcdir)/other-licenses/ply/ply/*.pyc) \
$(wildcard $(topsrcdir)/xpcom/idl-parser/*.pyc) \
$(NULL)
GARBAGE_DIRS += $(DEPTH)/xpcom/idl-parser/cache

View File

@ -1667,7 +1667,7 @@ def main():
if options.cachedir != '':
sys.path.append(options.cachedir)
if not os.path.isdir(options.cachedir):
os.mkdir(options.cachedir)
os.makedirs(options.cachedir)
try:
includePath = options.idlpath.split(':')