I have no idea how regexps actually function, so I just randomly tried to find something which recognizes the usage of \usepackage[<options>]{biblatex}. Your version did not do so correctly.
There is a checkbib phony target giving the actual content of $BIBTEX,$BIBFILES and $BIBLATEX—you may use this to check your regexps or to optimize my grepping.
The optional arguments of biblatex are typically split by linebreaks, since they are so numerous. The Makefile does not allow this, yet.
For some mysterious reason the arguments of \bibliography and \addbibressource typically differ by a .bib. I have added some case distinctions to take care of that. However, it is not particularly pretty, I must confess.
Some deeply arcane effect of the stars invokes bibtex after all the compilation (including execution of biber) finishes correctly—resulting in make returning an error code. Have no clue whether this is a feature of make or some hidden Makefile.include magic.
There are still a few issues.
\usepackage[<options>]{biblatex}
. Your version did not do so correctly.checkbib
phony target giving the actual content of$BIBTEX
,$BIBFILES
and$BIBLATEX
—you may use this to check your regexps or to optimize my grepping.\bibliography
and\addbibressource
typically differ by a.bib
. I have added some case distinctions to take care of that. However, it is not particularly pretty, I must confess.bibtex
after all the compilation (including execution of biber) finishes correctly—resulting inmake
returning an error code. Have no clue whether this is a feature ofmake
or some hiddenMakefile.include
magic.