c70cebf9ec71460623ff0dc3b10271941f086db8
tdreszer
  Mon May 19 17:06:48 2014 -0700
Altered makefiles to gracefully make the demo machines without tripping on permissions.  This change was approved by Hiram.
diff --git src/hg/hgGene/makefile src/hg/hgGene/makefile
index e0134b6..81ca8d1 100644
--- src/hg/hgGene/makefile
+++ src/hg/hgGene/makefile
@@ -3,30 +3,31 @@
 L += $(MYSQLLIBS) -lm
 MYLIBDIR = ../../lib/$(MACHTYPE)
 MYLIBS =  $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a
 
 A = hgGene
 
 O = hgGene.o alleles.o altSplice.o ctd.o dnaBindMotif.o domains.o gad.o\
     flyBaseInfo.o go.o info.o links.o microarray.o \
     method.o localization.o mrnaDescriptions.o otherOrgs.o\
     pathways.o pseudoGene.o rgdInfo.o rnaStructure.o sequence.o swissProtComments.o \
     synonym.o wikiTrack.o geneReviews.o
 
 include ../../inc/cgi_build_rules.mk
 
 my::
+	rm -fr ${CGI_BIN}-${USER}/hgGeneData
 	rsync -ar --exclude=CVS/ --exclude=.svn/ --delete hgGeneData ${CGI_BIN}-${USER}/
 	chmod -R a+rX ${CGI_BIN}-${USER}/hgGeneData
 
 install::
 	rm -fr ${DESTDIR}${CGI_BIN}/hgGeneData
 	rsync -ar --exclude=CVS/ --exclude=.svn/ --delete hgGeneData \
 		${DESTDIR}${CGI_BIN}/
 	chmod -R a+rX ${DESTDIR}${CGI_BIN}/hgGeneData
 
 alpha::
 	rm -fr ${CGI_BIN}/hgGeneData
 	rsync -ar --exclude=CVS/ --exclude=.svn/ --delete hgGeneData ${CGI_BIN}/
 	chmod -R g+w ${CGI_BIN}/hgGeneData
 	chmod -R a+rX ${CGI_BIN}/hgGeneData