forked from sng87/paradigm-scripts
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
59 lines (50 loc) · 1.9 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
THISDIR = ${CURDIR}
THISOS = ${shell uname -s}
JOBTREE_GIT = git://github.com/benedictpaten/jobTree.git
JOBTREE_COMMIT = 649252f55d73c10c634e313a064b62b61af747c0
SONLIB_GIT = git://github.com/benedictpaten/sonLib.git
PATHMARK_GIT = git://github.com/ucscCancer/pathmark-scripts.git
all : init.sh init.csh
init.sh : jobTree bin/paradigm
echo export PATH=${THISDIR}/bin:\$${PATH} > init.sh
echo if [ -n "\$${PYTHONPATH+x}" ] >> init.sh
echo then >> init.sh
echo export PYTHONPATH=${THISDIR}:${THISDIR}/bin:\$${PYTHONPATH} >> init.sh
echo else >> init.sh
echo export PYTHONPATH=${THISDIR}:${THISDIR}/bin >> init.sh
echo fi >> init.sh
init.csh : jobTree bin/paradigm
echo setenv PATH ${THISDIR}/bin:\$${PATH} > init.csh
echo if \$$?PYTHONPATH then >> init.csh
echo setenv PYTHONPATH ${THISDIR}:${THISDIR}/bin:\$${PYTHONPATH} >> init.csh
echo else >> init.csh
echo setenv PYTHONPATH ${THISDIR}:${THISDIR}/bin >> init.csh
echo endif >> init.csh
jobTree : sonLib
git clone ${JOBTREE_GIT}
cd jobTree; git checkout 649252f55d73c10c634e313a064b62b61af747c0; make
sonLib :
git clone ${SONLIB_GIT}
bin/paradigm :
if (test -d /inside); then \
cd bin; cp /inside/grotto/users/sng/bin/Paradigm/paradigm /inside/grotto/users/sng/bin/Paradigm/collectParameters .; \
fi
if (! test -e bin/paradigm); then \
if [ ${THISOS} == Darwin ]; then \
cd bin; cp ../exe/public/collectParameters ../exe/public/MACOSX/paradigm .; \
elif [ ${THISOS} == Linux ]; then \
cd bin; cp ../exe/public/collectParameters ../exe/public/LINUX/paradigm .; \
else \
echo "paradigm not compiled for ${THISOS}"; \
fi \
fi
pathmark-scripts :
if [ ! -d '../pathmark-scripts' ]; then \
cd ..; git clone ${PATHMARK_GIT}; cd pathmark-scripts; make; \
fi
ln -s ../pathmark-scripts pathmark-scripts
clean :
rm -rf bin/paradigm bin/collectParameters pathmark-scripts jobTree sonLib init.sh init.csh
if [ -d 'examples' ]; then \
cd examples; make clean; \
fi