Hi Vincent,

preparing some templates for the upcoming semester made me look into this again.

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 :-) )

I have a suggestion, see the attached patch. (I'm sure, this can be done in a more elegant way using tons of self generating and user configurable LU_* variables, but you should get the idea.)

1. Maintain a list of "junk" inputs (LU_JUNK_INPUTS). Unfortunately I see no other way to do this than manually adding entries to this list if they are discovered. Hoping that two different latex packages won't have conflicting usage of such a file.

2. Remove the "junk" inputs from the dependency list.

So comment.cut remains in *_INPUTS and *_OUTPUTS and gets removed only with make clean, but it no longer influences the dependency list.


Andreas

PS: Eventually call them "volatile", ... instead of "junk".

--- /usr/include/LaTeX.mk	2007-04-14 23:00:18.000000000 +0200
+++ LaTeX.mk	2007-10-10 16:15:35.000000000 +0200
@@ -195,6 +195,8 @@
 
 # for name in LU_TOTO_SUBLIST_master.dvi
 
+LU_JUNK_INPUTS	?= comment.cut
+
 define lu-addtovar-global # 1:name 2:value
   _LU_$(1)_ADD+=$(2)
   $(call lu-show-add-var,$(1),global,$(value 2))
@@ -624,7 +626,7 @@
  $$(eval $$(call lu-addtovar,DEPENDS,$(1),$(2), \
                $$(call lu-getvalues,FIGURES,$(1),$(2)) \
                $$(call lu-getvalues,BIBFILES,$(1),$(2)) \
-   $$(wildcard $$(call lu-getvalues,INPUTS,$(1),$(2))) \
+   $$(wildcard $$(filter-out $$(LU_JUNK_INPUTS),$$(call lu-getvalues,INPUTS,$(1),$(2)))) \
    $$(wildcard $$(call lu-getvalues,BIBSTYLES,$(1),$(2))) \
                $$(call lu-getvalues,BBLFILES,$(1),$(2))\
  ))

Reply via email to