X-Git-Url: https://git.llucax.com/z.facultad/75.42/euler.git/blobdiff_plain/4533df5a2b674ec9d2a005498d118079d0c1b4b7..9811a865a8f3495367e762c7cd0ce6f6e2f49527:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 6a18539..7b3ae04 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_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 ..