-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (30 loc) · 1.38 KB
/
makefile
File metadata and controls
39 lines (30 loc) · 1.38 KB
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
flist = 2 3 4 5 6 EV1 EV3
all: $(patsubst %, output/figure%.svg, $(flist))
venv: venv/bin/activate
venv/bin/activate: requirements.txt
test -d venv || virtualenv venv
. venv/bin/activate && pip install --prefer-binary -Uqr requirements.txt
touch venv/bin/activate
output/figure%.svg: venv genFigure.py syserol/figures/figure%.py
mkdir -p output
. venv/bin/activate && ./genFigure.py $*
test: venv
. venv/bin/activate && pytest -s -v -x
output/manuscript.md: venv manuscript/*.md
. venv/bin/activate && manubot process --content-directory=manuscript --output-directory=output --cache-directory=cache --skip-citations --log-level=INFO
cp -r manuscript/images output/
git remote rm rootstock
output/manuscript.html: venv output/manuscript.md $(patsubst %, output/figure%.svg, $(flist))
. venv/bin/activate && pandoc --verbose \
--defaults=./common/templates/manubot/pandoc/common.yaml \
--defaults=./common/templates/manubot/pandoc/html.yaml \
--csl=./manuscript/molecular-systems-biology.csl \
output/manuscript.md
output/manuscript.docx: venv output/manuscript.md $(patsubst %, output/figure%.svg, $(flist))
. venv/bin/activate && pandoc --verbose \
--defaults=./common/templates/manubot/pandoc/common.yaml \
--defaults=./common/templates/manubot/pandoc/docx.yaml \
--csl=./manuscript/molecular-systems-biology.csl \
output/manuscript.md
clean:
rm -rf output venv pylint.log