TASK:=$(notdir $(shell pwd))

export TEXINPUTS=../tex:

all: $(TASK).pdf

%.pdf: %.tex $(wildcard ../tex/*.*)
	pdflatex $<

clean::
	rm -f *.dvi *.aux *.log *.pdf
