-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
65 lines (47 loc) · 1.46 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
.PHONY: dist build test docs
# Location of the documentation branch.
REMOTE = [email protected]:~/sites/bioinfo.help/
all: serve
# Run the tests.
test:
@python src/biorun/test.py
# Update the usage data.
testdata:
(cd test/data && bash ../usage.sh)
# Update the data for the test script.
fulltest: testdata test
# Generate the output for docs
code:
(cd docs/code && bash code.sh)
# Generate the docs.
docs:
(cd docs && Rscript -e "bookdown::render_book(input='index.Rmd', output_dir='.book', output_format='bookdown::gitbook')")
# Push out the docs to remote docs.
sync: docs
rsync -avz docs/.book/ ${REMOTE}
rsync -avz docs/*.md ~/book/biostar-handbook-2/books/bio/
rsync -avz docs/images/igv-index.png ~/book/biostar-handbook-2/books/main/images
# Serve the documentation as a webpage.
serve:
(cd docs && rm -rf .book)
Rscript -e "bookdown::serve_book(dir='docs', preview=TRUE, output_dir='.book', port=8000)"
# Clean the files.
clean:
rm -rf dist build bio.egg-info
# Quick push for small changes.
push:
git commit -am "commit by `whoami`"
git push
# Build Python package.
build:
rm -rf build dist
hatch build
ls -lh dist
# Publish the package
publish: test build
hatch publish
#[email protected]:/home/www/book/data_www/bio
# Upload prebuilt data to distribution site.
upload:
(cd ~/.bio && GZIP=-9 && tar czvf biodata.tar.gz taxdump.tar.gz *.json *.sqlite assembly_summary_genbank.txt)
rsync -avz --progress ~/.bio/biodata.tar.gz ${REMOTE}data