Author: Michael R. Crusoe <crusoe@debian.org>
Description: Use packaged gtest and update paths
Forwarded: not-needed
--- libvcflib.orig/test/Makefile
+++ libvcflib/test/Makefile
@@ -7,22 +7,17 @@
 CXX=g++
 CFLAGS=-Wall -std=c++0x
 INCLUDE=-I../src -I../googletest/googletest/include/ -I../fastahack -I../smithwaterman/ -I../multichoose/ -I../filevercmp/ -I../googletest/googletest/make/
-LIB=-L../build -L../googletest/googletest/make/ -lm -ltabixpp -lhts -lpthread
-LIBGTEST=../googletest/googletest/make/gtest_main.a
-LIBVCF=../build/libvcflib.a
+LIB=-L../obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)/ -L../googletest/googletest/make/ -lm -ltabixpp -lhts -lpthread
+LIBGTEST=-lgtest_main -lgtest
+LIBVCF=-lvcflib
 
 all: run
 
-../googletest/googletest/make/gtest_main.a:
-	cd ../googletest/googletest/make && make
-
-tests/main: ../googletest/googletest/make/gtest_main.a
+tests/main:
 	$(CXX) $(CFLAGS) $(INCLUDE) tests/mainTest.cpp -o tests/main $(LIBVCF) $(LIBGTEST) $(LIB)
 
 run: tests/main
 	./tests/main
-	rm -v ../googletest/googletest/make/gtest_main.a
-	rm -v ../googletest/googletest/make/sample1_unittest
 
 clean:
 	rm -f tests/main
