all: report.pdf plots = by-amp-ratio.pdf by-freq-ratio.pdf by-%.pdf: by-%.dat by-%.gnu gnuplot -e 'datasrc="$<"' -e 'filename="$@"' by-$*.gnu report.pdf: report.tex $(plots) pdflatex $< clean: rm report.aux report.log report.pdf $(plots) .PHONY: all clean