I got stuck with a gnuplot experiment. I am new to gnuplot and am trying to explore the gnuplot options and variety.
First, here is what I am trying to do: from a c program I want to plot 5 data files. Nonetheless, I use a .gplt file, a makefile, and a.c file( working with geany on lubuntu).
Here is what the files look like:
===================simulation.gplt====================
plot 'result1.data' using 2:3 title "F" w lines
plot 'result2.data' using 2:3 title "F" w lines
plot 'result3.data' using 2:3 title "F" w lines
plot 'result4.data' using 2:3 title "F" w lines
plot 'result5.data' using 2:3 title "F" w lines
set ouput "simulation.ps"
replot
=================Makefile==============================enter code here
all:run plot
plot: result1.data
result2.data
result3.data
result4.data
result5.data
gnuplot simulation.gplt
ps2pdf simulation.ps
rm -f simulation.ps
evince simulation.pdf
run:program
./program
program: program.c
gcc -Wall -o program -O3 program.c -lm -g
clean:
rm -f program
rm -f result1.data
rm -f result2.data
rm -f result3.data
rm -f result4.data
rm -f result5.data
rm -f simulation.pdf
rm -f simulation.ps
.......................................................
what I can type make clean in the terminal, eveything seems ok. Yet, when I type "make", I see those 2 messages:
make:result2.data: unknown command make ****[plot] error 127
The point: can anybody help? I feel that the mistake in the Makefile, I tried to fix it at several times, but the same messages still appear.