CFLAGS = -Wall -std=gnu11 -Ofast LDLIBS = -lm all:Out.txt Out.error.png Out.error.png:out.data.txt Makefile echo '\ set term png ;\ set out "$@" ;\ set log y ;\ set title "Monte Carlo integration of x^2+y^2$@ @for n in $(ns); do echo n=$$n; ./main $$n >>$@; done Out.txt:main ./$< > $@ main:main.o plainmc.o quasimc.o clean: $(RM) main *.o [Oo]out* test: echo $(ns)