PACKAGE := fripost
TEX := $(basename $(wildcard *.tex))

PDF = $(addsuffix .pdf, $(TEX))

all: $(PDF)

$(PDF): %.pdf: %.tex $(PACKAGE).sty
	pdflatex $<

$(PACKAGE).sty: %.sty: ../tex/%.sty
	ln -s $<

clean:
	rm -f *~ *.aux *.log *.out *.pdf
	rm -f *.sty

.PHONY: all