aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ae4a66c83d6f1d18191a803e44fe94f1ca831b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# 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

tidy:
	@bibtex-tidy -m *.bib

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