all: build/example.pdf

GLOSSARIES=$(wildcard ../glossary-*.yaml)

build/example.pdf: FORCE build/glossary.tex
	TEXINPUTS=../computing-latex-class: \
	BIBINPUTS=../computing-latex-class: \
	latexmk -r ../computing-latex-class/latexmkrc example.tex

# the full glossary of everything listed in GLOSSARIES
build/glossary.tex: $(GLOSSARIES) ../glossary-to-latex.py  | build
	../glossary-to-latex.py --source $(GLOSSARIES) > $@

build:
	mkdir -p build

clean::
	$(RM) -r build


FORCE:


.PHONY: all clean FORCE
