all: report.pdf plot_families=stationary nonstationary by_length_plots=$(addsuffix /by-length.pdf, $(plot_families)) %/by-length.pdf: %/by-length.dat by-length.gnu gnuplot -e 'datasrc="$<"' -e 'filename="$@"' by-length.gnu by_snr_plots=$(addsuffix /by-snr.pdf, $(plot_families)) %/by-snr.pdf: %/by-snr.dat by-snr.gnu gnuplot -e 'datasrc="$<"' -e 'filename="$@"' by-snr.gnu plots=$(by_length_plots) $(by_snr_plots) report.pdf: report.tex $(plots) schema.png pdflatex $< clean: rm report.aux report.log report.pdf $(plots) .PHONY: all clean