649752fd57c220329fbd597767bd9076b82c0a74
hiram
  Wed Apr 10 11:22:23 2013 -0700
implementing minimal makefile userApp.mk refs #9104
diff --git src/hg/ratStuff/makefile src/hg/ratStuff/makefile
index f135232..0470333 100644
--- src/hg/ratStuff/makefile
+++ src/hg/ratStuff/makefile
@@ -1,36 +1,44 @@
 # Build all directories 
 
 all:
 	@for D in ${USE_DIRS} x; do \
 	  if test "$$D" != "x" ; then \
 	    ( cd $$D && echo $$D && ${MAKE} ) ;\
 	    x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \
 	    fi ;\
 	    done
 
 # List of directories to build
 USE_DIRS = ${DIRS}
 
 DIRS = \
 	mafAddIRows \
 	mafAddQRows \
 	mafFilter \
 	mafFrag \
 	mafFrags \
 	mafGene \
 	mafMeFirst \
 	mafSpeciesList \
 	mafSpeciesSubset \
 	mafSplit \
 	mafSplitPos \
 	mafsInRegion \
 	mafOrder \
 	stageMultiz 
 
+test::
+	@for D in ${USE_DIRS} x; do \
+	  if test "$$D" != "x" ; then \
+	    ( cd $$D && echo $$D && ${MAKE} test ) ;\
+	    x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \
+	    fi ;\
+	    done
+
 clean::
 	@for D in ${USE_DIRS} x; do \
 	  if test "$$D" != "x" ; then \
 	    ( cd $$D && echo $$D && ${MAKE} clean ) ;\
 	    x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \
 	    fi ;\
 	    done