X-Git-Url: https://git.llucax.com/z.facultad/75.42/euler.git/blobdiff_plain/4533df5a2b674ec9d2a005498d118079d0c1b4b7..cd5e734a119e8827615d5a51820d048f32efdcae:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 6a18539..8b49c86 100644 --- a/Makefile +++ b/Makefile @@ -18,12 +18,40 @@ CFLAGS=-ansi -pedantic -Wall -g3 # Programa a compilar. -TARGETS=enunciado +TARGETS=carga.o calculo.o grafico.o # Regla por defecto. -all: $(TARGETS) +all: tp1 + +tp1: $(TARGETS) # Regla para borrar. clean: @echo "Limpiando..." - @rm -fv $(TARGETS) *.o core + @rm -fR $(TARGETS) *.o core tp1 corrida_*.txt html latex + +# Corridas. +corrida_2.txt: tp1 + @./tp1 2 > corrida_2.txt + +corrida_2_200__150.txt: tp1 + @./tp1 2 200 -150 > corrida_2_200__150.txt + +corrida_50_5000.txt: tp1 + @./tp1 50 5000 > corrida_50_5000.txt + +# Corridas con error. +corrida_2__200__150.txt: tp1 + @(./tp1 2 -200 -150 2> corrida_2__200__150.txt) || true + +corrida_2_20a0__150.txt: tp1 + @(./tp1 2 20a0 -150 2> corrida_2_20a0__150.txt) || true + +# Crea todas las corridas. +corridas: corrida_2.txt corrida_2_200__150.txt corrida_50_5000.txt \ + corrida_2__200__150.txt corrida_2_20a0__150.txt + +# Informe. +informe: corridas + @doxygen + @cd latex && make refman.pdf && cd ..