forked from facebookresearch/TorchRay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (41 loc) · 983 Bytes
/
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
VER=$(shell head -n 1 torchray/VERSION)
define get_conda_env
$(shell which python | xargs dirname | xargs dirname)
endef
.PHONY: all
all:
.PHONY: dist
dist:
rm -rf dist
docs/make-docs
python3 setup.py sdist
tar -tzvf dist/torchray-*.tar.gz
.PHONY: conda
conda:
mkdir -p dist
VER=$(VER) conda build -c defaults -c pytorch -c conda-forge \
--no-anaconda-upload --python 3.7 packaging/meta.yaml
.PHONY: conda-install
conda-install:
conda install --use-local torchray
.PHONY: docs
docs:
rm -rf docs/html
docs/make-docs
.PHONY: pub
pub: docs
git push pub master
git push -f pub gh-pages
git push -f --tags pub
touch docs/html/.nojekyll
git -C docs/html init
git -C docs/html remote add pub [email protected]:facebookresearch/TorchRay.git
git -C docs/html add .
git -C docs/html commit -m "add documentation"
git -C docs/html push -f pub master:gh-pages
.PHONY: tag
tag:
git tag -f v$(VER)
.PHONY: distclean
distclean:
rm -rf dist