This repository has been archived on 2019-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
s1-tp/S2/TP4/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).*