eed6b3f36a8c1f8095592f35abe979f82656b2ed
angie
Thu Apr 20 10:32:35 2017 -0700
Adding vai.pl to SCRIPTS and to a new var, USER_APP_SCRIPTS, and new target %.userAppScript that installs the script in ${DESTDIR}${BINDIR} so userApps does not require the scripts directory to be added to user's PATH, per discussion with Hiram. refs #12216
diff --git src/hg/utils/makefile src/hg/utils/makefile
index 1cb7da3..73a967e 100644
--- src/hg/utils/makefile
+++ src/hg/utils/makefile
@@ -1,117 +1,125 @@
# 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 \
bigMafToMaf \
bigPslToPsl \
chromGraphFromBin \
chromGraphToBin \
crTreeIndexBed \
crTreeSearchBed \
gapToLift \
genePredFilter \
genePredToBigGenePred \
genePredToProt \
gff3ToGenePred \
gff3ToPsl \
gtfToGenePred \
hubCheck \
hubPublicCheck \
mafToBigMaf \
makeTableList \
oligoMatch \
overlapSelect \
positionalTblCheck \
pslToBigPsl \
pslMap \
pslMapPostChain \
tdbQuery \
transMapPslToGenePred \
twoBitMask
+USER_APP_SCRIPTS = \
+ vai.pl
+
SCRIPT_FILES = \
dbNsfpToBed.pl \
dumpDb.pl \
mergeOverlapBed4.pl \
- mergeSortedBed3Plus.pl
+ mergeSortedBed3Plus.pl \
+ ${USER_APP_SCRIPTS}
# List of directories to build of interest only at UCSC
DIRS = ${buildRefresh} \
automation \
buildReleaseLog \
checkUrlsInTable \
geoMirrorNode \
makeTrackIndex \
mysqlSecurityCheck \
pslUniq \
refSeqGet \
safePush \
toDev64 \
wigBedToStep
TEST_DIRS = \
genePredFilter \
genePredToProt \
gff3ToGenePred \
gff3ToPsl \
gtfToGenePred \
hubCheck \
overlapSelect \
pslMap \
pslToBigPsl \
refSeqGet \
transMapPslToGenePred
APPS = $(DIRS) $(UTILS_APPLIST)
all:: utils
utils: $(APPS:%=%.utils)
%.utils:
cd $* && echo $* && $(MAKE)
-userApps: $(UTILS_APPLIST:%=%.userApp)
+userApps: $(UTILS_APPLIST:%=%.userApp) $(USER_APP_SCRIPTS:%=%.userAppScript)
%.userApp:
cd $* && echo $* && $(MAKE)
+%.userAppScript:
+ chmod +x $*
+ rm -f ${DESTDIR}${BINDIR}/$*
+ cp -p $* ${DESTDIR}${BINDIR}/$*
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)