38785bd54a6b4f7c5f13bc7a4b6666d69a2a422c
hiram
  Thu Jun 17 15:37:36 2010 -0700
fixup makefiles to have clean targets
diff --git src/hg/ratStuff/makefile src/hg/ratStuff/makefile
index 4b2d90b..f135232 100644
--- src/hg/ratStuff/makefile
+++ src/hg/ratStuff/makefile
@@ -1,15 +1,15 @@
 # Build all directories 
 
 all:
-	@for D in $(USE_DIRS) x; do \
+	@for D in ${USE_DIRS} x; do \
 	  if test "$$D" != "x" ; then \
-	    ( cd $$D && echo $$D && $(MAKE) ) ;\
+	    ( cd $$D && echo $$D && ${MAKE} ) ;\
 	    x=$$? ; if [ $$x -ne 0 ]; then exit $$x ; fi \
 	    fi ;\
 	    done
 
 # List of directories to build
-USE_DIRS = $(DIRS)
+USE_DIRS = ${DIRS}
 
 DIRS = \
 	mafAddIRows \
@@ -26,3 +26,11 @@
 	mafsInRegion \
 	mafOrder \
 	stageMultiz 
+
+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