-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (28 loc) · 768 Bytes
/
Makefile
File metadata and controls
31 lines (28 loc) · 768 Bytes
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
.DEFAULT_GOAL := build
RELEASE_VERSION := $(or ${RELEASE_VERSION},"v0.21.8")
ifeq ($(CI),true)
DOCKER_TTY_ARG=
else
DOCKER_TTY_ARG=t
endif
.PHONY: build
build:
docker build -t docs-builder .
docker run -i$(DOCKER_TTY_ARG) --rm \
-v $(PWD):/workdir \
-v $(PWD)/.gitconfig:/root/.gitconfig \
-e RELEASE_VERSION=$(RELEASE_VERSION) \
-w /workdir \
docs-builder julia \
--color=yes \
--project=docs/ \
-e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.resolve(); include("docs/make.jl")'
.PHONY: update
update:
docker build -f Dockerfile.updater -t docs-updater .
docker run -i$(DOCKER_TTY_ARG) --rm \
-u $$(id -u):$$(id -g) \
-v $(PWD):/workdir \
-w /workdir \
docs-updater bash \
-c "./update.sh $(RELEASE_VERSION)"