84e2956319cf935eb9df4f28db15965e92660db8
hiram
  Thu Apr 4 11:58:14 2013 -0700
fixup test target to be test:: to avoid conflict with userApp.mk refs #9104
diff --git src/hg/test/makefile src/hg/test/makefile
index d53723f..e5dbc9a 100644
--- src/hg/test/makefile
+++ src/hg/test/makefile
@@ -1,3 +1,19 @@
-kentSrc = ../..
-A = test
-include $(kentSrc)/inc/userApp.mk
+include ../../inc/common.mk
+
+L += ${MYSQLLIBS} -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS =  ${MYLIBDIR}/jkhgap.a ${MYLIBDIR}/jkweb.a
+
+O = test.o
+
+test: ${O}
+	${CC} ${COPT} -o test $O ${MYLIBS} $L
+	@./test
+	@rm -f test
+
+compile: ${O}
+	${CC} ${COPT} -o test $O ${MYLIBS} $L
+	@./test
+
+clean::
+	rm -f test ${O}