-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
71 lines (64 loc) · 2.03 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
60
61
62
63
64
65
66
67
68
69
70
71
THISDIR = $(CURDIR)
THISOS = $(shell uname -s)
init.sh : jobTree exe
echo \
export PATH=$(THISDIR)/bin:$(THISDIR)/utilities:\$${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
echo \
setenv PATH $(THISDIR)/bin:$(THISDIR)/utilities:\$${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 git://github.com/benedictpaten/jobTree.git
cd jobTree; make
sonLib :
git clone git://github.com/benedictpaten/sonLib.git
exe :
mkdir exe
if (test -d /hive); then \
cd exe; cp /hive/groups/cancerGB/paradigm/exe/newEmSpec/paradigm /hive/groups/cancerGB/paradigm/current/Paradigm/ParadigmDistribution/collectParameters .; \
fi
if (test -d /inside); then \
cd exe; cp /inside/grotto/users/sng/bin/Paradigm/paradigm /inside/grotto/users/sng/bin/Paradigm/collectParameters .; \
fi
if (! test -e exe/paradigm); then \
if [ $(THISOS) == Darwin ]; then \
cd exe; cp ../public/exe/collectParameters ../public/exe/MACOSX/paradigm .; \
elif [ $(THISOS) == Linux ]; then \
cd exe; cp ../public/exe/collectParameters ../public/exe/LINUX/paradigm .; \
else \
echo "paradigm not compiled for os $(THISOS)"; \
fi \
fi
ln -s $(THISDIR)/exe/paradigm bin/
ln -s $(THISDIR)/exe/collectParameters bin/
pathmark-scripts :
cd ..; git clone git://github.com/sng87/pathmark-scripts.git
ln -s ../pathmark-scripts pathmark-scripts
cd pathmark-scripts; make
galaxy : pathmark-scripts
mkdir -p paradigm_module
cp bin/* paradigm_module/
cp -r pathmark-scripts/bin/* paradigm_module/
clean :
rm -rf bin/paradigm bin/collectParameters pathmark-scripts jobTree sonLib exe init.sh init.csh
cd test; make clean