X-Git-Url: https://git.llucax.com/z.facultad/75.42/euler.git/blobdiff_plain/977e05b75c7af07b8b733b0ce17c0f9e5cefa13b..9811a865a8f3495367e762c7cd0ce6f6e2f49527:/Makefile diff --git a/Makefile b/Makefile index 33d8e28..7b3ae04 100644 --- a/Makefile +++ b/Makefile @@ -18,12 +18,40 @@ CFLAGS=-ansi -pedantic -Wall -g3 # Programa a compilar. -TARGETS=tp1 +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_0_10.txt: tp1 + @(./tp1 0 10 2> corrida_0_10.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_0_10.txt + +# Informe. +informe: corridas + @doxygen + @cd latex && make refman.pdf && cd ..