[Omake] Rules execute in the wrong order
Luis O'Shea
loshea at gmail.com
Tue Mar 13 20:16:06 PDT 2007
I have run into a problem with rules executing (seemingly) in the
wrong order. To make matters worse, the problem does not seem to be
deterministic -- sometimes everything just works.
I have
[OMakefile]
# set EPSTOPDF to "epstopdf" on Windows, to "sh epstopdf" on OS X
%.pdf: %.eps
$(EPSTOPDF) $<
USEPDFLATEX=true
LaTeXDocument(a, $(EMPTY))
a.pdf: x.pdf
[/OMakefile]
Typing "omake a.pdf" sometimes results in pdflatex running *before*
epstopdf, resulting in a failed build. "omake -k a.pdf" (or modifying
a.tex to not actually depend on x.pdf) allows x.pdf to be built (after
pdflatex runs).
As I mentioned, this seem to be non-deterministic. The problematic
behaviour seems to happen more often when the last three lines of the
OMakefile actually appear in a .SUBDIRS OMakefile.
Thanks.
More information about the Omake
mailing list