Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit fe08000

Browse files
committed
Make sure errors fail the makefile target
1 parent cf5eaad commit fe08000

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ help:
2727

2828
# Make the site's html in docker
2929
docker_html:
30-
set -x; mkdir -p _build; \
31-
docker build -t tarmakdocs:latest .; \
32-
container=$$(docker create tarmakdocs:latest); \
33-
git ls-files -z | xargs -0 tar -czvf - | docker cp - $$container:/site; \
34-
docker start -a $$container; \
35-
docker cp $$container:/site/_build .; \
36-
docker rm $$container
30+
# create sphinx image
31+
$(eval IMAGE_ID := $(shell docker build -q .))
32+
# start documentaion build
33+
$(eval CONTAINER_ID := $(shell docker create $(IMAGE_ID)))
34+
(git ls-files && git ls-files --others --exclude-standard) | tar cf - -T - | docker cp - $(CONTAINER_ID):/site
35+
docker start -a $(CONTAINER_ID)
36+
docker cp $(CONTAINER_ID):/site/_build - | tar xf -
37+
docker rm $(CONTAINER_ID)
3738

3839
.venv:
3940
virtualenv -p $(shell which python3) $(VENV_PATH)

0 commit comments

Comments
 (0)