Questions tagged [makefile]

{makefile} tells the operating system how to derive the target program.

83 questions
162
votes
4 answers

How to properly 'make' a latex project?

I've got a latex project that looks like this: project/ |-- main.tex |-- main.bib |-- preamble.tex |-- preamble.fmt |-- makefile The preamble (preamble.tex) is being precompiled into preamble.fmt. main.bib is generated using the file…
romeovs
  • 9,102
11
votes
3 answers

how to cause unix 'make' to know how many times to run *tex

Is there a clever way to cause the unix make command to run a tex variant as many times as are required to resolve all references? I've used tex for a long time, and I still don't know which of all those extra files (.aux, .log, etc) should be…
dank
  • 2,189
7
votes
2 answers

Makefile for a latex report

Not sure if this belongs here - but its bugging me. I have a makefile : DOCNAME=SI16-SC13B038 D1=Abstract D2=Bonafide D3=Declaration D4=Introduction DBIB=References TEXDEP=$(D1)/*tex $(D2)/*tex $(D3)/*tex $(D4)/*tex all:…
5
votes
3 answers

What is "sepdflatexmk"?

A colleague gave me a .tex file and said it needed to be compiled with sepdflatexmk, which she had on her Mac. She didn't know anything more about this compiler. I did some Googling and it seems specific to TeXShop on Macs, relating to makefiles…
GregH
  • 3,499
2
votes
0 answers

What is the recommended approach to compile sequentially some variants of code?

Continuing experimenting with conditional text, I am getting a code with a number of options: some dialogs in english are translated, some other options (not shown in the MWE) enable the document be compiled with or without the graphics. In order to…
Yves
  • 2,825
1
vote
0 answers

Is there a way to create LaTex "object files" like in c in order to write a proper Makefile

I am trying to write a Makefile for a LaTeX project which uses more than one .tex file. I was wondering, if it is possible to create several pdf's (or any other data format) for each .tex and link them in the end together to the main pdf in order to…
1
vote
1 answer

Makefile for arbitrary latex document

I wanna use automatic variables to prepare a Makefile for several latex documents. In other words, i have foo.tex, bar.tex, bee.tex, otherdoc.tex ... I wanna use a single Makefile to process all of them in the same manner, say process with latex,…
1
vote
1 answer

When do makefiles recompile and when don't they? (How to force makefiles working.)

I have noticed that makefiles sometimes do their job (they compile the document) and sometimes they don't (then, they claim nothing has changed). In the latter case, depending on how the makefile looks, there is no output at all or a message is…
1
vote
0 answers

\lstinputlisting interprets special characters from included file

I'm writing a report with multiple programming languages. At the moment I'm trying to include a Makefile. When I do: \lstinputlisting[language=make]{./Kodeeksempler/makefile} I get the following error compiling with texlive in texmaker: ! Missing $…
Martin
  • 11