CFLAGS += -Wall -std=c17 $(shell gsl-config --cflags) LDLIBS = -lgc -lm $(shell gsl-config --libs) Out.plot.svg: plot.data Makefile gnuplot -e "\ set term svg background rgb 'white';\ set title 'Higgs production signal';\ set xlabel 'Energy [GeV]';\ set ylabel 'Signal [arb.u.]';\ plot 'higgs.data' using 1:2:3 with errorbars title 'exp'\ , '$<' using 1:2 with lines title 'fit' ;\ " > $@ plot.data Out.txt: main higgs.data ./$< < $(word 2,$^) 1>Out.txt 2>plot.data main:main.o list.o amoeba.o main.o list.o:list.h vec.o qnewton.o:vec.h clean: find . -type f -executable -delete $(RM) *.o [Oo]ut*