Created
June 22, 2014 18:56
-
-
Save kdungs/12c0198a5330cccbf61a to your computer and use it in GitHub Desktop.
A Makefile for LaTeX with intermediate running of biber.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROJECT=main | |
build/${PROJECT}.pdf: build/${PROJECT}.bbl | |
lualatex --output-directory=build ${PROJECT} | |
build/${PROJECT}.bbl: build/${PROJECT}.bcf | |
biber build/${PROJECT} | |
build/${PROJECT}.bcf: ${PROJECT}.tex | |
lualatex --output-directory=build ${PROJECT} | |
clean: | |
rm -f build/* |
Looks like .bcf file is modified with every lualatex/pdflatex run. Then there is nothing much we can do about it with this structure of dependency.
To solve that problem, try to back up the bcf
file before running lualatex/pdflatex/xelatex:
build/${PROJECT}.pdf: ${PROJECT}.bbl
mv build/${PROJECT}.bcf build/${PROJECT}.bcf.bak
lualatex --output-directory=build ${PROJECT}
mv build/${PROJECT}.bcf.bak build/${PROJECT}.bcf
Oh this is horribly outdated. In 2020, just use latexmk, please.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same for me. Have you found a solution?