Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile - github.com/readthedocs/sphinx_rtd_theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b16211bac336cf8c20714bb7cb27c53bb7ab6f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SHELL := /bin/bash
CWD := $(shell cd -P -- '$(shell dirname -- "$0")' && pwd -P)

docker-images:
	docker-compose build

docker-npm-build:
	rm -f .container_id
	docker-compose run -d sphinx_rtd_theme build > .container_id
	docker container wait "$(shell cat .container_id)"
	docker cp "$(shell cat .container_id):/project/sphinx_rtd_theme" .
	docker cp "$(shell cat .container_id):/project/package-lock.json" .
	@echo "Done building"

docker-npm-dev:
	docker-compose run sphinx_rtd_theme dev
	
docker-build-all: docker-images docker-npm-build