mirror of https://github.com/docker/compose.git
add Windows drive prefix to temp dir usage in the doc generation task
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
b0a35ccc98
commit
83ad5e97b7
7
Makefile
7
Makefile
|
@ -17,9 +17,10 @@ VERSION ?= $(shell git describe --match 'v[0-9]*' --dirty='.m' --always --tags)
|
||||||
|
|
||||||
GO_LDFLAGS ?= -w -X ${PKG}/internal.Version=${VERSION}
|
GO_LDFLAGS ?= -w -X ${PKG}/internal.Version=${VERSION}
|
||||||
GO_BUILDTAGS ?= e2e
|
GO_BUILDTAGS ?= e2e
|
||||||
|
DRIVE_PREFIX?=
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
DETECTED_OS = Windows
|
DETECTED_OS = Windows
|
||||||
|
DRIVE_PREFIX=C:
|
||||||
else
|
else
|
||||||
DETECTED_OS = $(shell uname -s)
|
DETECTED_OS = $(shell uname -s)
|
||||||
endif
|
endif
|
||||||
|
@ -122,8 +123,8 @@ docs: ## generate documentation
|
||||||
$(eval $@_TMP_OUT := $(shell mktemp -d -t compose-output.XXXXXXXXXX))
|
$(eval $@_TMP_OUT := $(shell mktemp -d -t compose-output.XXXXXXXXXX))
|
||||||
$(BUILDX_CMD) bake --set "*.output=type=local,dest=$($@_TMP_OUT)" docs-update
|
$(BUILDX_CMD) bake --set "*.output=type=local,dest=$($@_TMP_OUT)" docs-update
|
||||||
rm -rf ./docs/internal
|
rm -rf ./docs/internal
|
||||||
cp -R "$($@_TMP_OUT)"/out/* ./docs/
|
cp -R "$(DRIVE_PREFIX)$($@_TMP_OUT)"/out/* ./docs/
|
||||||
rm -rf "$($@_TMP_OUT)"/*
|
rm -rf "$(DRIVE_PREFIX)$($@_TMP_OUT)"/*
|
||||||
|
|
||||||
.PHONY: validate-docs
|
.PHONY: validate-docs
|
||||||
validate-docs: ## validate the doc does not change
|
validate-docs: ## validate the doc does not change
|
||||||
|
|
Loading…
Reference in New Issue