ab40d41255aeb3b4b4af0502da204bfe92328620
max
  Tue Sep 15 12:51:03 2015 -0700
adding a variable CGI-BIN_DEST that is either CGI-BIN_USER or
CGI-BIN_BETA or CGI-BIN, depending on how make was called.
This should avoid the triplicated rules we have everywhere.
It doesn't work when one wants to run "make alpha beta my" but
I think we never do that.
Using this to copy an .ra file to the cgi-bin directory. refs #15113

diff --git src/hg/hgTracks/makefile src/hg/hgTracks/makefile
index c9d9f24..e31dabd 100644
--- src/hg/hgTracks/makefile
+++ src/hg/hgTracks/makefile
@@ -35,31 +35,31 @@
       simpleTracks.o wigMafTrack.o wigTrack.o imageV2.o
 else
   GBROWSE_D=
 endif
 
 %.o: %.c
 	${CC} ${COPT} ${CFLAGS} ${GBROWSE_D} ${LOWELAB_DEFS} ${HG_DEFS} ${HG_WARN} ${HG_INC} ${XINC} -o $@ -c $<
 
 mgsc: strip
 	mv $A ${CGI_BIN}/$A
 
 compile: compileMain ${RENDERA}
 
 compileMain: $O
 	${CC} ${CFLAGS} -o $A $O ${MYLIBS} ${L}
-	cp extTools.ra ${CGI_BIN}
+	cp extTools.ra ${CGI-BIN_DEST}
 
 ${RENDERA}: ${RENDERO}
 	${MAKE} -f makefile.hgRenderTracks ${MAKECMDGOALS}
 
 wigTrack.o:	wigCommon.h
 bedGraph.o:	wigCommon.h
 
 switchGear.o:	switchGear.h
 cds.o:		cds.h
 hgTracks.o:	cds.h
 pslTrack.o:	cds.h
 
 clean::
 	rm -f ct_hgwdev_*.bed hgtIdeo_*.gif hgt_*.gif
 	rm -f ${RENDERA} ${RENDERO}