On Sat, 28 Aug 2021 12:49:04 +0300 Eric Berger <ericjberger at gmail.com> wrote:> As Achim wrote in point (2), Makefile is your friend.Well, all I can say is that Makefile is *not* my friend; I have never made its acquaintance and wouldn't know where to begin looking. Would it be possible for you to provide a template/prototype Makefile and give me some idea what to *do* with it? cheers, Rolf Turner -- Honorary Research Fellow Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
I can understand Rolf's concern. Make is a tool that is very helpful, but also not trivial to learn how to make work. If a good Makefile has been set up, then things are easy, but I've generally found my skills limited to fairly simple Makefiles. I would suggest that what is needed is a bit of modest collaboration to set up a Makefile for dealing with this issue that has enough comments so it is clear what Make will be doing. I suspect that in this case the need is to remove the offending .bbl file and then run the tex*** operations. Possibly the result is small enough to post in this thread. Anyone? Cheers, JN On 2021-08-28 9:14 a.m., Rolf Turner wrote:> > On Sat, 28 Aug 2021 12:49:04 +0300 > Eric Berger <ericjberger at gmail.com> wrote: > >> As Achim wrote in point (2), Makefile is your friend. > > Well, all I can say is that Makefile is *not* my friend; I have never > made its acquaintance and wouldn't know where to begin looking. > > Would it be possible for you to provide a template/prototype Makefile > and give me some idea what to *do* with it? > > cheers, > > Rolf Turner >
On Sat, 28 Aug 2021, Rolf Turner wrote:> > On Sat, 28 Aug 2021 12:49:04 +0300 > Eric Berger <ericjberger at gmail.com> wrote: > >> As Achim wrote in point (2), Makefile is your friend. > > Well, all I can say is that Makefile is *not* my friend; I have never > made its acquaintance and wouldn't know where to begin looking. > > Would it be possible for you to provide a template/prototype Makefile > and give me some idea what to *do* with it?In a Makefile you can declare "rules" for producing certain "target" files from "prerequisite" files. The rules are only applied if any of the prerequisite files have changed since the target was last produced. In your case the .bib is a prerequisite for the target .bbl which in turn is a prerequisite (along with the .tex) for the .pdf. A nice introduction to GNU Make for data analysis workflows is this JSS paper by Peter Baker (http://petebaker.id.au/): https://doi.org/10.18637/jss.v094.c01 Best wishes, Z