24d2d718b5dbcf228c7821894754f8d4a15b0334
hiram
  Fri Jun 7 09:38:26 2013 -0700
fixup clean rule so it will function OK without the kent/src directory existing refs #9149
diff --git src/userApps/Makefile src/userApps/Makefile
index d59ac17..31258dd 100644
--- src/userApps/Makefile
+++ src/userApps/Makefile
@@ -15,31 +15,31 @@
 export USE_SSL = 1
 export NOSQLTEST = 1
 
 all:  utils
 
 utils: libs
 	cd kent/src && ${MAKE} userApps
 	cd kent/src/parasol && ${MAKE}
 	./kent/src/utils/userApps/mkREADME.sh ${DESTDIR}/${BINDIR} ${CURDIR}/kentUtils.Documentation.txt
 
 libs: installEnvironment
 	cd samtabix && ${MAKE}
 	cd kent/src && ${MAKE} libs
 
 clean:
-	cd kent/src && ${MAKE} -i -k clean
+	test ! -d kent/src || (cd kent/src && ${MAKE} -i -k clean)
 	rm -f part1Src.zip part2Src.zip part3Src.zip part4Src.zip part5Src.zip
 	rm -f userApps.zip
 
 fetchSource:
 	./fetchKentSource.sh
 	@echo -n "size of fetched kent source tree: "
 	@du -hs kent
 	@echo -n "number of files in kent source tree: "
 	@find ./kent -type f | wc -l
 
 # this installEnvironment will add all the shell environment variables
 # to the kent/src/inc/localEnvironment.mk file which is included
 # from the kent/src/inc/userApps.mk to allow any 'make' to function
 # properly when inside this extracted source tree.  The 'sed' operation
 # removes the '-e' from the echo for systems where the echo command doesn't