all: tsp.nn tsp.frp tsp.greedy tsp.pqgreedy artigo.pdf

tsp.kdtree:
	ghc -o tsp.kdtree point.io/Point.hs kdtree/KDTree.hs KDtree/toureval.hs 

tsp.frp:
	ghc -o tsp.frp point.io/Point.hs kdtree/KDTree.hs nn/NN.hs frp/FRP.hs frp/toureval.hs

tsp.nn: 
	ghc -o tsp.nn point.io/Point.hs kdtree/KDTree.hs nn/NN.hs nn/toureval.hs

tsp.greedy:
	ghc -o tsp.greedy point.io/Point.hs kdtree/KDTree.hs greedy/Greedy.hs greedy/toureval.hs

tsp.pqgreedy:
	ghc -o tsp.pqgreedy point.io/Point.hs kdtree/KDTree.hs greedy/Greedy.hs pqgreedy/PQGreedy.hs pqgreedy/toureval.hs

artigo.pdf:
	pdflatex doc/doc.tex > log.txt

clear:
	rm doc.*
	rm log.txt
	rm tsp.* 
