File: Makefile

package info (click to toggle)
stac-check 1.11.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,212 kB
  • sloc: python: 2,590; makefile: 44
file content (24 lines) | stat: -rw-r--r-- 658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: build
build:
	docker build \
		-t stac_check .

run_docker = docker run -it --rm \
		stac_check

.PHONY: shell
shell: 
	$(run_docker) /bin/bash

.PHONY: docs
docs:           ## Build documentation locally
	pip install -e ".[docs]"
	sphinx-build -b html -E docs/ docs/_build/html
	@echo "Documentation built in docs/_build/html"

.PHONY: docker-docs
docker-docs:    ## Build documentation inside Docker container
	docker build -t stac_check .
	docker run --rm -v $(PWD)/docs/_build:/app/docs/_build stac_check sphinx-build -b html -E docs/ docs/_build/html
	@echo "Documentation built in docs/_build/html"
	@echo "Docker documentation build complete."