tag #423374 + confirmed upstream thanks Andreas Beckmann a écrit : > Package: latex-make > Version: 2.1.11-2 > Severity: normal > > Hi, > > I just found a strange interaction with comment.sty: > I use comment.sty and create a \specialcomment and afterwards > there is a new file "comment.cut" in the current directory > which seems to be a junk file that is shared between all targets > and gets added to the dependencies in mydoc.pdf.mk (multiple times): > > TD_mydoc.pdf_INPUTS += comment.cut > TD_mydoc.pdf_OUTPUTS += comment.cut > > As a result every rebuild target updates comment.cut causing all other > targets to be rebuild.
I'm not sure the problem can be fixed. For one build (pdf OR ps OR ...), the file is correctly detected and managed (ie there is no rebuild again and again). If you build several targets (ps AND pdf AND ...), as this file is created AND used by (pdf)latex, the behaviour is right. You can work around this by adding in your Makefile something as: all: pdf ps $(RM) comment.cut .INTERMEDIATE: comment.cut include LaTeX.mk You can also redefine the \CommentCutFile macro so that the used file will not be the same in pdf mode and in dvi mode. Looking at the sources of comment.sty, it seems that the comment.cut is used just after being created. So a correct fix would involve LaTeX Make to remove this intermediate file after compilation and remove it from depends and output, too. This will not be easy to do with the current implementation. So I suggest you to use one of the two workarounds I proposed above for now (unless you have a patch to propose :-) ) Best regards, Vincent > Andreas