3ba0a1c2f2cb0b220a2989225ff9512d2531070b
max
  Fri Dec 19 07:33:10 2014 -0800
changes after code review, refs #14545
diff --git src/utils/bigBedToBed/makefile src/utils/bigBedToBed/makefile
index 84f7671..68a7313 100644
--- src/utils/bigBedToBed/makefile
+++ src/utils/bigBedToBed/makefile
@@ -1,4 +1,33 @@
 kentSrc = ../..
 A = bigBedToBed
 include $(kentSrc)/inc/userApp.mk
 L += -lm -lz ${SOCKETLIB}
+
+# the following was mostly copied from ~/kent/src/hg/makeDb/hgLoadBed/makefile
+cgi:: compile
+	chmod a+rx $A${EXE}
+	@if [ ! -d "${CGI_BIN}-${USER}/utils" ]; then \
+		${MKDIR} ${CGI_BIN}-${USER}/utils; \
+	fi
+	rm -f ${CGI_BIN}-${USER}/utils/$A
+	mv $A${EXE} ${CGI_BIN}-${USER}/utils/$A
+
+alpha:: strip
+	@if [ ! -d "${CGI_BIN}/utils" ]; then \
+		${MKDIR} ${CGI_BIN}/utils; \
+	fi
+	rm -f ${CGI_BIN}/utils/$A
+	mv $A${EXE} ${CGI_BIN}/utils/$A
+
+beta:: strip
+	@if [ ! -d "${CGI_BIN}-beta/utils" ]; then \
+		${MKDIR} ${CGI_BIN}-beta/utils; \
+	fi
+	rm -f ${CGI_BIN}-beta/utils/$A
+	mv $A${EXE} ${CGI_BIN}-beta/utils/$A
+
+strip::  compile
+	${STRIP} $A${EXE}
+	chmod g+w $A${EXE}
+	chmod a+rx $A${EXE}
+