Don't remake .tex files just to update the .d files
Status: Beta
Brought to you by:
worden
when .tex files are made from other things they get remade when you're trying to do other things, just because the makefile includes the .d and the .d depends on the .tex. It shouldn't remake .tex files unless they're actually needed.
Anonymous
Possible solutions include
have a separate rule to update .d files, and call it from WW before calling each normal make job.
update the .d file for a given .tex during the process of recompiling the .tex file, and at no other time.
have a separate rule to update .d files, and call it from within the makefile just before remaking a product from a .tex file.
Number 3 has the advantage over 1 that it doesn't require any added complexity on the WW side, and may have the advantage over 2 in the following scenario:
i. create a .dmu file that will be used to create a .tex file.
ii. create a .tex file that includes the above mentioned .tex file, which doesn't exist yet.
iii. request the .latexml.xhtml output from ii.
Will it compile the dmu file? Only if the .d file is created and used. Even strategy 3 has to be done carefully to make this work, otherwise it will fail the first time and succeed the second and subsequent times.
or we should use latexmk instead of homemade makefiles:
https://sourceforge.net/tracker/index.php?func=detail&aid=3388647&group_id=366300&atid=1527388
I think this is the same as https://sourceforge.net/p/workingwiki/bugs/48/. Combining.