include ../make.problemlist PROBLEMDIRS=$(PROBLEMS) TEXPROBLEMS=$(PROBLEMDIRS:%=%/problem_statement/problem.en.tex) EXAMPLES=$(PROBLEMDIRS:%=%/examples.tex) all: docs docs: MidAtlantic2017.pdf Practice2017.pdf Handouts2017.pdf ContestGuide2017.pdf MidAtlantic2017.pdf: MidAtlantic2017.tex problemList.tex balloons.tex $(EXAMPLES) $(TEXPROBLEMS) pdflatex MidAtlantic2017 pdflatex MidAtlantic2017 ContestGuide2017.pdf: ContestGuide2017.tex contestRules.tex $(EXAMPLES) $(TEXPROBLEMS) pdflatex ContestGuide2017 pdflatex ContestGuide2017 Practice2017.pdf: Practice2017.tex romans/problem_statement/problem.en.tex romans/examples.tex pdflatex Practice2017 pdflatex Practice2017 Handouts2017.pdf: Handouts2017.tex problemList.tex balloons.tex $(EXAMPLES) $(TEXPROBLEMS) pdflatex Handouts2017 pdflatex Handouts2017 %/examples.tex: cd $* && $(MAKE) -$(MAKEFLAGS) examples.tex clean: rm -rf *.log *.aux *.log *.aux Work *.pdf