PROBLEM=match2n RAND_GEN=randStrip2n SOLVER=solver #SOLVER2=$(SOLVER)Cubic all: sol/$(SOLVER) gen/$(RAND_GEN) input/input20.txt output/output20.txt sol/$(SOLVER).cpp.pdf # testo/testo.pdf sol/$(SOLVER): sol/$(SOLVER).cpp g++ -Wall --pedantic -O2 -o sol/$(SOLVER) sol/$(SOLVER).cpp sol/$(SOLVER2): sol/$(SOLVER2).cpp g++ -Wall --pedantic -O2 -o sol/$(SOLVER2) sol/$(SOLVER2).cpp gen/$(RAND_GEN): gen/$(RAND_GEN).cpp g++ -Wall --pedantic -O2 -o gen/$(RAND_GEN) gen/$(RAND_GEN).cpp input/input20.txt: gen/$(RAND_GEN) makeInputs.sh ./makeInputs.sh output/output20.txt: sol/$(SOLVER) input/input20.txt ./makeOutputs.sh sol/solver testo/testo.pdf: testo/testo.tex testo/$(PROBLEM).tex pdflatex testo/testo.tex sol/$(SOLVER).cpp.pdf: sol/$(SOLVER).cpp a2ps --portrait --columns=1 --font-size=9.8 -o sol/$(SOLVER).cpp.ps sol/$(SOLVER).cpp ps2pdf sol/$(SOLVER).cpp.ps mv $(SOLVER).cpp.pdf sol/ rm -f sol/$(SOLVER).cpp.ps sol/$(SOLVER2).cpp.pdf: sol/$(SOLVER2).cpp a2ps --portrait --columns=1 --font-size=9.2 -o sol/$(SOLVER2).cpp.ps sol/$(SOLVER2).cpp ps2pdf sol/$(SOLVER2).cpp.ps mv $(SOLVER2).cpp.pdf sol/ rm -f sol/$(SOLVER2).cpp.ps clean-pdf: rm -f testo/testo.pdf sol/$(SOLVER).cpp.pdf sol/$(SOLVER2).cpp.pdf clean: rm -f *~ */*~ output/output* input/input* *.exe diffReport* sol/$(SOLVER) sol/$(SOLVER2) gen/$(RAND_GEN) clean-all: clean clean-pdf