Makefile: add error skips to clean targets
This commit is contained in:
parent
e371cdedcb
commit
b538204f7a
8
Makefile
8
Makefile
|
@ -5,18 +5,18 @@ build:
|
||||||
|
|
||||||
.PHONY: fullclean
|
.PHONY: fullclean
|
||||||
fullclean: clean
|
fullclean: clean
|
||||||
docker rmi distrust-co -f
|
docker rmi distrust-co || true
|
||||||
docker image prune --filter label=stage=distrust-co-builder
|
docker image prune -f --filter label=stage=distrust-co-builder || true
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -r _site
|
rm -r _site || true
|
||||||
|
|
||||||
_site: build
|
_site: build
|
||||||
mkdir -p _site
|
mkdir -p _site
|
||||||
docker run distrust-co tar c -C /usr/share/nginx/html . | tar x -C _site
|
docker run distrust-co tar c -C /usr/share/nginx/html . | tar x -C _site
|
||||||
|
|
||||||
.PHONY: serve
|
.PHONY: serve
|
||||||
serve:
|
serve: build
|
||||||
# Run Docker container with listener for current dir and port mapping
|
# Run Docker container with listener for current dir and port mapping
|
||||||
docker run --rm -p 0.0.0.0:4000:80 -it distrust-co
|
docker run --rm -p 0.0.0.0:4000:80 -it distrust-co
|
||||||
|
|
Loading…
Reference in New Issue