Génération des images via Gnuplot via Makefile
This commit is contained in:
parent
797ef48d3e
commit
8c55165f69
3 changed files with 16 additions and 5 deletions
|
@ -1,5 +1,14 @@
|
|||
tri_insertion_moyen.txt: analyse_en_moyenne.py
|
||||
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 tri_insertion_moyen.txt
|
||||
rm $(NOM).*
|
Reference in a new issue