b0b51e8cb7f7549ba9889231a4a5e2765c77d696
hiram
  Fri Aug 13 12:01:23 2010 -0700
fixing test target in fixed makefiles
diff --git src/hg/pslSwap/makefile src/hg/pslSwap/makefile
index e104d73..de26e77 100644
--- src/hg/pslSwap/makefile
+++ src/hg/pslSwap/makefile
@@ -1,27 +1,28 @@
 include ../../inc/common.mk
 
 L += -lm
 MYLIBDIR = ../../lib/${MACHTYPE}
 MYLIBS =  ${MYLIBDIR}/jkhgap.a ${MYLIBDIR}/jkweb.a
 
 A = pslSwap
 O = pslSwap.o
 
 all: ${A}
 
 ${A}: ${O}
 	${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} ${L}
 	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
 
 compile:: ${O}
 	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O ${MYLIBS} ${L}
 
-test:
+test: compile
 	cd tests && ${MAKE} test
+	rm -f ${A}${EXE}
 
 clean:
 	rm -f pslSwap ${OBJS}
 	cd tests && ${MAKE} clean
 
 savebak:
 	savebak pslSwap makefile *.c tests/makefile tests/input