forked from data-8/datascience
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 781 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
.PHONY: help docs serve_docs install test deploy_docs
DOCS_DIR = docs
GH_REMOTE = $(shell git remote -v | grep "origin.*(fetch)" | grep -E "\S+\\.\S+" -o)
DEPLOY_DOCS_MESSAGE = Build docs
help:
@echo "Please use 'make <target>' where <target> is one of:"
@echo " install to install the datascience package locally"
@echo " test to run the tests"
@echo " docs to build the docs"
@echo " clean_docs to remove the doc files"
@echo " serve_docs to serve the docs from a local Python server"
@echo " deploy_docs to deploy the docs to Github Pages"
install:
python3 setup.py develop
test:
python3 tests.py
docs:
cd $(DOCS_DIR) ; make html
clean_docs:
cd $(DOCS_DIR) ; make clean
serve_docs:
cd $(DOCS_DIR)/_build/html ; python -m http.server