391f8a18b3796e2b03ed96d20b532ad238bc9dbb
hiram
  Tue Apr 2 13:43:00 2013 -0700
moving to minimal makefiles for kentUtils build refs #9104
diff --git src/utils/bedCommonRegions/makefile src/utils/bedCommonRegions/makefile
index 332c109..96c66d8 100644
--- src/utils/bedCommonRegions/makefile
+++ src/utils/bedCommonRegions/makefile
@@ -1,22 +1,11 @@
-include ../../inc/common.mk
-
-L += -lm
-MYLIBDIR = ../../lib/${MACHTYPE}
-MYLIBS =  ${MYLIBDIR}/jkweb.a
-
+kentSrc = ../..
 A = bedCommonRegions
-O = bedCommonRegions.o
-
-bedCommonRegions: ${O} ${MYLIBS}
-	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} $L
-	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
-
-compile:: ${O}
-	${CC} ${COPT} -o ${A}${EXE} ${O} ${MYLIBS} $L
-
-clean::
-	rm -f ${A}${EXE} ${O}
+include $(kentSrc)/inc/userApp.mk
+L += -lm
 
 test:
 	bedCommonRegions tests/in/1.bed tests/in/2.bed tests/in/3.bed > tests/out.bed
 	diff tests/expected.bed tests/out.bed
+
+clean::
+	rm -f tests/out.bed