14 lines
352 B
Makefile
14 lines
352 B
Makefile
NOM=tri_insertion_moyen
|
|
GNUPLOT_EXT=png svg eps
|
|
COURBE=0.287*x**2-2*x+1
|
|
|
|
default: $(NOM).png
|
|
|
|
$(NOM).txt: analyse_en_moyenne.py
|
|
python3 $< --brut > $@
|
|
|
|
$(addprefix $(NOM).,$(GNUPLOT_EXT)): $(NOM).txt
|
|
gnuplot -e "set terminal $(subst $(NOM).,,$@); set output '$(NOM).$(subst $(NOM).,,$@)'; plot '$(NOM).txt', $(COURBE) with lines"
|
|
|
|
clean:
|
|
rm $(NOM).*
|