djcsdy / swfmill

Generate or decompile Adobe Flash SWF files using an XML dialect. Inspect and modify the XML by hand, or by using a built in XSLT processor.
http://www.swfmill.org/
GNU General Public License v2.0
131 stars 28 forks source link

Parallel compilation may not work #21

Closed acheron386 closed 12 years ago

acheron386 commented 12 years ago

Parallel compilation frequently stops on syntax errors in generated gSWF*.cpp files. The errors are not reproducible. Looks like the compiler starts processing those files before xsltproc finishes writing them.

The problem can be fixed by replacing the rule: $(CODEGEN_GENERATEDSOURCES) $(CODEGEN_GENERATEDHEADERS): $(CODEGEN_SRC) xsltproc $(srcdir)/codegen/mk.xsl $(srcdir)/codegen/source.xml

with 2 rules: $(CODEGEN_GENERATEDSOURCES) $(CODEGEN_GENERATEDHEADERS): .code.generated

.code.generated: $(CODEGEN_SRC) xsltproc $(srcdir)/codegen/mk.xsl $(srcdir)/codegen/source.xml touch .code.generated

The patch for Makefile.am and Makefile.in has been submitted to the mailing list.

djcsdy commented 12 years ago

I can’t reproduce this behaviour myself but I’m not surprised it’s happening sometimes. It should hopefully be fixed in the next release.