LATEXMK ?= latexmk
CLASS   = gfjournal.cls
BIB     = references.bib
CHECK   = checklists/repro_checklist.tex

.PHONY: all clean distclean

all: sample_full.pdf blinded.pdf

sample_full.pdf: sample_full.tex $(CLASS) $(BIB) $(CHECK)
	$(LATEXMK) -pdf sample_full.tex

blinded.pdf: sample_blinded.tex $(CLASS) $(BIB) $(CHECK)
	$(LATEXMK) -pdf -jobname=blinded sample_blinded.tex

clean:
	$(LATEXMK) -C
	rm -f *.bbl *.run.xml *.bcf

distclean: clean
	rm -f sample_full.pdf blinded.pdf

