TARGET=summary.pdf $(subst .tex,.pdf,$(wildcard discussion-*.tex))

all: $(TARGET)

%.pdf: %.tex $(shell ls sum-*.tex)
	pdflatex $<
	pdflatex $<

clean:
	rm -f *.aux *.glo *.idx *fdb_latexmk *.fls *.log *.toc *.ist *.acn *.acr *.alg *.bbl *.blg *.dvi *.glg *.gls *.ilg *.ind *.lof *.lot *.maf *.mtc *.mtcl *.out *.syntex.gz

.PHONY: clean