aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3b2eedf94bb8c26b7d9a2a2fe8c6add6ff5c7658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Makefile with common procedures for managing a BibTeX repository.
#

lint: lint_biber lint_pybtex

# Thanks https://tex.stackexchange.com/questions/173621/how-to-validate-check-a-biblatex-bib-file#173622
lint_biber:
	@find -name '*.bib' -exec biber --tool -V {} \;
	@rm -f *.bibertool* *.blg* _bibertool.bib

lint_pybtex:
	@cat *.bib > _lint_pybtext.bib
	@pybtex-convert _lint_pybtext.bib _lint_pybtext.yaml
	@rm -f _lint_pybtext.bib _lint_pybtext.yaml

yaml:
	@./bin/biblio-yml > _biblio.yml