bfb5529b48cbffeac31bd3ec0be8c331c18c7484 hiram Tue Jun 4 16:11:22 2013 -0700 including localEnvironment.mk to allow function in userApp environment refs #9149 diff --git src/hg/utils/makefile src/hg/utils/makefile index 08c5c8f..948d52c 100644 --- src/hg/utils/makefile +++ src/hg/utils/makefile @@ -1,88 +1,91 @@ # Build all directories in utils # test comment # $Id: makefile,v 1.21 2010/06/04 00:12:42 larrym Exp $ -include ../../inc/common.mk +kentSrc = ../.. + +include ${kentSrc}/inc/localEnvironment.mk +include ${kentSrc}/inc/common.mk # 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 = \ hubPublicCheck \ safePush \ toDev64 \ automation \ refreshNamedSessionCustomTracks \ refSeqGet \ wigBedToStep \ pslUniq \ makeTrackIndex \ geoMirrorNode 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)