This repository has been archived on 2019-08-09. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
s1-tp/S2/TP4/Makefile

14 lines
No EOL
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).*