forked from sng87/pathmark-scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (30 loc) · 1.1 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
THISDIR = ${CURDIR}
PARADIGM_GIT = git://github.com/ucscCancer/paradigm-scripts.git
all : init.sh init.csh
init.sh : bin/circlePlot.py
echo export PATH=$(THISDIR)/bin:\$${PATH} > init.sh
echo if [ -n "\$${PYTHONPATH+x}" ] >> init.sh
echo then >> init.sh
echo export PYTHONPATH=$(THISDIR)/bin:\$${PYTHONPATH} >> init.sh
echo else >> init.sh
echo export PYTHONPATH=$(THISDIR)/bin >> init.sh
echo fi >> init.sh
init.csh : bin/circlePlot.py
echo setenv PATH $(THISDIR)/bin:\$${PATH} > init.csh
echo if \$$?PYTHONPATH then >> init.csh
echo setenv PYTHONPATH $(THISDIR)/bin:\$${PYTHONPATH} >> init.csh
echo else >> init.csh
echo setenv PYTHONPATH $(THISDIR)/bin >> init.csh
echo endif >> init.csh
bin/circlePlot.py : paradigm-scripts
ln -s $$PWD/paradigm-scripts/bin/circlePlot.py bin/circlePlot.py
paradigm-scripts :
if [ ! -d '../paradigm-scripts' ]; then \
cd ..; git clone ${PARADIGM_GIT}; cd paradigm-scripts; make; \
fi
ln -s $$PWD/../paradigm-scripts paradigm-scripts
clean :
rm -f init.sh init.csh bin/circlePlot.py paradigm-scripts
if [ -d 'examples' ]; then \
cd examples; make clean; \
fi