Add a target that is a real resource to generate-webui
This commit is contained in:
parent
a59dbc4c79
commit
b3de9a040b
1 changed files with 7 additions and 7 deletions
14
Makefile
14
Makefile
|
@ -50,7 +50,7 @@ build-dev-image-no-cache: dist
|
||||||
|
|
||||||
## Create the "dist" directory
|
## Create the "dist" directory
|
||||||
dist:
|
dist:
|
||||||
mkdir dist
|
mkdir -p dist
|
||||||
|
|
||||||
## Build WebUI Docker image
|
## Build WebUI Docker image
|
||||||
build-webui-image:
|
build-webui-image:
|
||||||
|
@ -63,12 +63,12 @@ clean-webui:
|
||||||
echo 'For more information show `webui/readme.md`' > webui/static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md
|
echo 'For more information show `webui/readme.md`' > webui/static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md
|
||||||
|
|
||||||
## Generate WebUI
|
## Generate WebUI
|
||||||
generate-webui:
|
webui/static/index.html:
|
||||||
if [ ! -f "webui/static/index.html" ]; then \
|
$(MAKE) build-webui-image
|
||||||
$(MAKE) build-webui-image; \
|
docker run --rm -v "$$PWD/webui/static":'/src/webui/static' traefik-webui npm run build:nc
|
||||||
docker run --rm -v "$$PWD/webui/static":'/src/webui/static' traefik-webui npm run build:nc; \
|
docker run --rm -v "$$PWD/webui/static":'/src/webui/static' traefik-webui chown -R $(shell id -u):$(shell id -g) ./static
|
||||||
docker run --rm -v "$$PWD/webui/static":'/src/webui/static' traefik-webui chown -R $(shell id -u):$(shell id -g) ./static; \
|
|
||||||
fi
|
generate-webui: webui/static/index.html
|
||||||
|
|
||||||
## Build the binary
|
## Build the binary
|
||||||
binary: generate-webui build-dev-image
|
binary: generate-webui build-dev-image
|
||||||
|
|
Loading…
Reference in a new issue