forked from prody/ProDy-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (57 loc) · 2.55 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
72
73
74
75
76
77
78
79
# Makefile for ProDy website
SPHINXBUILD = sphinx-build
BUILDDIR = _build
WORKDIR = _workdir
.PHONY: help clean clone pull html pdf copy stats
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make HTML files of the website"
@echo " pdf to make PDF files of the manual and tutorials"
@echo " devel to make HTML/PDF files for the devel version"
clean:
-rm -rf $(BUILDDIR)/doctrees/*
clone:
if [ ! -d "ProDy/.git" ]; then git clone https://github.com/prody/ProDy.git; fi
drugui:
if [ ! -d "tutorials/drugui_tutorial/.git" ]; then git clone https://github.com/prody/DruGUI.git tutorials/drugui_tutorial; fi
cd tutorials/drugui_tutorial; git pull
pull: clone
cd ProDy; git checkout master; git pull origin master
cd ProDy; git checkout devel; git pull origin devel
latest: pull
cd ProDy; git checkout `git describe --tags --abbrev=0`; make build
devel: pull
cd ProDy; git checkout devel; make build; cd docs; make build
mv -f ProDy/docs/_build/html _build/html/devel
link:
ln -sf ProDy/docs manual
ln -sf ProDy/docs/_theme _theme
workdir:
# creates workdir (where IPython directive input and output is saved)
mkdir -p $(WORKDIR)
# copies required files from individual tutorials
cp -rf tutorials/conformational_sampling/$(WORKDIR)/* $(WORKDIR)
cp -rf tutorials/conformational_sampling/conformational_sampling_files/* $(WORKDIR)
cp -rf tutorials/enm_analysis/enm_analysis_files/* $(WORKDIR)
cp -rf tutorials/ensemble_analysis/$(WORKDIR)/* $(WORKDIR)
cp -rf tutorials/evol_tutorial/$(WORKDIR)/* $(WORKDIR)
cp -rf tutorials/prody_tutorial/prody_tutorial_files/* $(WORKDIR)
cp -rf tutorials/structure_analysis/$(WORKDIR)/* $(WORKDIR)
cp -rf tutorials/trajectory_analysis/trajectory_analysis_files/* $(WORKDIR)
html: latest link drugui workdir
cd $(WORKDIR); $(SPHINXBUILD) -b html -d ../$(BUILDDIR)/doctrees ../ ../$(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
pdf: latest link
rm -f reference/*pdf tutorials/*/*pdf tutorials/*/*files.zip tutorials/*/*files.tgz
cd manual; make pdf
mv manual/_build/latex/ProDy.pdf _build/html/manual/
make -C tutorials/conformational_sampling clean copy
make -C tutorials/drugui_tutorial clean copy
make -C tutorials/enm_analysis clean copy
make -C tutorials/ensemble_analysis clean copy
make -C tutorials/evol_tutorial clean copy
make -C tutorials/nmwiz_tutorial clean copy
make -C tutorials/prody_tutorial clean copy
make -C tutorials/structure_analysis clean copy
make -C tutorials/trajectory_analysis clean copy