Debian Codegraph @

docs/Makefile

raw symbols SCIP
1 build: pipenv
2 @# Run a production build of the documentation. Strict mode makes warnings fatal.
3 pipenv run mkdocs build --strict
4
5 @# Build main packages, discarding build output.
6 go build -v ./...
7
8 @# Build _test.go files containing Doc* functions, don't execute tests.
9 go test -c -o /dev/null ./... >/dev/null
10
11 preview: pipenv
12 pipenv run mkdocs serve
13
14 shell: pipenv
15 @echo "pipenv shell"
16 @exec pipenv shell
17
18 pipenv:
19 ifeq (, $(shell command -v pipenv 2> /dev/null))
20 $(error "pipenv is not installed, exiting..")
21 endif
22
23 @# Ensure a venv and install dependencies from Pipfile.lock. Buffer stdio
24 @# and display it on error as pipenv uses stdin and stderr arbitrarily.
25 @echo "pipenv sync"
26 @out=`pipenv sync 2>&1` || echo "$${out}"
27
28 .PHONY: pipenv