forked from artefactory/choice-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 902 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
USE_CONDA ?= 1
INSTALL_SCRIPT = install_with_conda.sh
ifeq (false,$(USE_CONDA))
INSTALL_SCRIPT = install_with_venv.sh
endif
.DEFAULT_GOAL = help
# help: help - Display this makefile's help information
.PHONY: help
help:
@grep "^# help\:" Makefile | grep -v grep | sed 's/\# help\: //' | sed 's/\# help\://'
# help: install - Create a virtual environment and install dependencies
.PHONY: install
install:
@bash bin/$(INSTALL_SCRIPT)
# help: install_precommit - Install pre-commit hooks
.PHONY: install_precommit
install_precommit:
@pre-commit install -t pre-commit
@pre-commit install -t pre-push
# help: serve_docs_locally - Serve docs locally on port 8001
.PHONY: serve_docs_locally
serve_docs_locally:
@mkdocs serve --livereload -a localhost:8001
# help: deploy_docs - Deploy documentation to GitHub Pages
.PHONY: deploy_docs
deploy_docs:
@mkdocs build
@mkdocs gh-deploy