7741801d6cb7872801c3066068287e3e99040ebc
hiram
  Mon Aug 16 15:55:32 2010 -0700
fixup test target to use compile and to clean up after test
diff --git src/hg/genePredSingleCover/makefile src/hg/genePredSingleCover/makefile
index 0d4d8dc..fd30b57 100644
--- src/hg/genePredSingleCover/makefile
+++ src/hg/genePredSingleCover/makefile
@@ -1,20 +1,25 @@
 include ../../inc/common.mk
 HG_WARN = ${HG_WARN_ERR}
 
-MYLIBDIR = ../../lib/$(MACHTYPE)
-L += $(MYSQLLIBS) -lm
-MYLIBS =  $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a
+MYLIBDIR = ../../lib/${MACHTYPE}
+L += ${MYSQLLIBS} -lm
+MYLIBS =  ${MYLIBDIR}/jkhgap.a ${MYLIBDIR}/jkweb.a
 
+A = genePredSingleCover
 O = geneScore.o genePredSingleCover.o
 
-genePredSingleCover: $O $(MYLIBS)
-	${CC} ${COPT} ${CFLAGS} -o ${BINDIR}/genePredSingleCover $O $(MYLIBS) $L
+genePredSingleCover: $O ${MYLIBS}
+	${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} $L
 
 geneScore.o: geneScore.c geneScore.h
 genePredSingleCover.o: genePredSingleCover.c geneScore.h
 
-test:
+compile: ${O}
+	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O ${MYLIBS} $L
+
+test: compile
 	(cd tests && ${MAKE} test)
+	rm -fr tests/output ${A}${EXE} *.o
 
 savebak:
 	savebak genePredSingleCover  *.[ch] makefile tests/makefile tests/input