b190f60266c3451f5c7a8e4f2dd3d995417d5e5d hiram Thu Nov 7 13:54:50 2013 -0800 do not build refreshNamedSessionCustomTracks on Mac OSX will not work refs #12106 diff --git src/hg/utils/makefile src/hg/utils/makefile index ca4815b..b267b4c 100644 --- src/hg/utils/makefile +++ src/hg/utils/makefile @@ -1,92 +1,102 @@ # Build all directories in utils # test comment # $Id: makefile,v 1.21 2010/06/04 00:12:42 larrym Exp $ kentSrc = ../.. include ${kentSrc}/inc/localEnvironment.mk include ${kentSrc}/inc/common.mk +# to check for Mac OSX Darwin specifics: +UNAME_S := $(shell uname -s) + +# can not build this on Mac OSX - has functions not supported +ifeq ($(UNAME_S),Darwin) + buildRefresh= +else + buildRefresh=refreshNamedSessionCustomTracks +endif + # List of directories to build for userApps UTILS_APPLIST = \ bedExtendRanges \ bedToPsl \ bedWeedOverlapping \ chromGraphFromBin \ chromGraphToBin \ crTreeIndexBed \ crTreeSearchBed \ gapToLift \ gff3ToGenePred \ gff3ToPsl \ gtfToGenePred \ hubCheck \ makeTableList \ oligoMatch \ overlapSelect \ positionalTblCheck \ pslMap \ tdbQuery \ twoBitMask SCRIPT_FILES = \ dbNsfpToBed.pl \ dumpDb.pl \ mergeOverlapBed4.pl \ mergeSortedBed3Plus.pl # List of directories to build of interest only at UCSC -DIRS = \ +DIRS = ${buildRefresh} \ hubPublicCheck \ safePush \ toDev64 \ automation \ refreshNamedSessionCustomTracks \ refSeqGet \ wigBedToStep \ pslUniq \ makeTrackIndex \ geoMirrorNode \ mysqlSecurityCheck TEST_DIRS = \ gff3ToGenePred \ gff3ToPsl \ gtfToGenePred \ overlapSelect \ pslMap \ refSeqGet APPS = $(DIRS) $(UTILS_APPLIST) all:: utils utils: $(APPS:%=%.utils) %.utils: cd $* && echo $* && $(MAKE) userApps: $(UTILS_APPLIST:%=%.userApp) %.userApp: cd $* && echo $* && $(MAKE) scripts: $(SCRIPT_FILES:%=%.scripts) %.scripts: chmod +x $* rm -f ${SCRIPTS}/$* cp -p $* ${SCRIPTS}/$* alpha: scripts all test:: ${TEST_DIRS:%=%.test} %.test: (cd $* && ${MAKE} test) clean:: $(APPS:%=%.clean) - find . -name '*.o' -exec rm {} \; %.clean: (cd $* && ${MAKE} clean) compile:: $(APPS:%=%.compile) - find . -name '*.o' -exec rm {} \; %.compile: (cd $* && ${MAKE} compile)