I am fighting with a logical problem. I have a program listing, which has some highlighted lines. Those lines are represented with a ballon, which ballon is created in the same macro, which creates program listing as well. I want to add a remark (another balloon) to the highlight ballon, also in the same macro. The lines making the remark say that the highlight ballon does not exist; which is right in the first pass, but not in the second pass. In IDE, it is fine: I know the reason, and start compilation also the second time, and that time with no error.
Now I am using UseLATEX, i.e. it makes a Makefile and invokes pdflatex. pdflatex prepares the file correctly, writes messages like
Output written on MyFile.pdf (53 pages, 518340 bytes).
Transcript written on MyFile.log.
CMakeFiles/MyFile_pdf.dir/build.make:75: recipe for target 'MyFile.pdf' failed
The output file is perfect, except that the remark points to some undefined position. It would not be a problem, UseLatex Makefile compiles anyhow multiple times, and from the second pass on, the error message goes away, and the .pdf is correct. However, 'make' notices the error, aborts the whole batch processing and even deletes the .pdf file; i.e. a repeated 'make' is hopeless. Finally, I have an aborted compilation, a deleted .pdf file, and a log file showing no error.
Is it possible, at any level, to convince any of those actors, to take this error not too serious?