b0b51e8cb7f7549ba9889231a4a5e2765c77d696
hiram
  Fri Aug 13 12:01:23 2010 -0700
fixing test target in fixed makefiles
diff --git src/hg/pslMap/makefile src/hg/pslMap/makefile
index 007377f..4d36483 100644
--- src/hg/pslMap/makefile
+++ src/hg/pslMap/makefile
@@ -1,33 +1,34 @@
 include ../../inc/common.mk
 
 MYLIBDIR = ../../lib/$(MACHTYPE)
 MYLIBS = $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a
-LIBS= ${MYLIBS} -lm
+L += -lm
 
 A = pslMap
 O = pslMap.o
 
 all: ${BINDIR}/pslMap
 
 
 pslMap: ${O} ${MYLIBS}
 	${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} ${L}
 	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
 
 pslMap.o: usage.msg
 
 # create usage msg from text
 usage.msg: usage.txt
 	echo '/* GENERATED CODE, DO NOT EDIT */' > $@.tmp
 	${STRINGIFY} $< >> $@.tmp
 	mv -f $@.tmp $@
 
 compile:: ${O} usage.msg
 	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O ${MYLIBS} ${L}
 
-test::
+test:: compile
 	(cd tests && ${MAKE} test)
+	rm -f ${A}${EXE}
 
 clean::
-	rm -f pslMap *.o usage.msg
+	rm -f ${A} ${O} usage.msg
 	(cd tests && ${MAKE} clean)