mirror of
https://github.com/dani-garcia/bw_web_builds.git
synced 2024-12-26 12:28:15 +03:00
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
|
SHELL := bash
|
||
|
.ONESHELL:
|
||
|
.SHELLFLAGS := -eu -o pipefail -c
|
||
|
.DELETE_ON_ERROR:
|
||
|
|
||
|
help:
|
||
|
@echo "Use either: clean, checkout, build, patch-web-vault, generate-patch, tar, or full"
|
||
|
@echo "Or for docker builds use: docker or docker-extract"
|
||
|
.PHONY: help
|
||
|
|
||
|
clean:
|
||
|
rm -rvf "./web-vault"
|
||
|
rm -rvf "./builds"
|
||
|
rm -rvf "./docker_builds"
|
||
|
.PHONY: clean
|
||
|
|
||
|
checkout:
|
||
|
./scripts/checkout_web_vault.sh
|
||
|
.PHONY: checkout
|
||
|
|
||
|
patch-web-vault:
|
||
|
./scripts/patch_web_vault.sh
|
||
|
.PHONY: patch-web-vault
|
||
|
|
||
|
generate-patch:
|
||
|
./scripts/generate_patch_file.sh
|
||
|
.PHONY: generate-patch
|
||
|
|
||
|
build:
|
||
|
./scripts/build_web_vault.sh
|
||
|
.PHONY: checkout
|
||
|
|
||
|
tar:
|
||
|
./scripts/tar_web_vault.sh
|
||
|
.PHONY: tar
|
||
|
|
||
|
full: checkout patch-web-vault build tar
|
||
|
.PHONY: full
|
||
|
|
||
|
docker:
|
||
|
docker build -t bw_web_vault .
|
||
|
.PHONY: docker
|
||
|
|
||
|
docker-extract: docker
|
||
|
@docker rm bw_web_vault_extract || true
|
||
|
@docker create --name bw_web_vault_extract bw_web_vault
|
||
|
@mkdir -vp docker_builds
|
||
|
@docker cp bw_web_vault_extract:/bw_web_vault.tar.gz ./docker_builds/bw_web_vault.tar.gz
|
||
|
@docker cp bw_web_vault_extract:/web-vault ./docker_builds/web-vault
|
||
|
@docker rm bw_web_vault_extract || true
|
||
|
.PHONY: docker-extract
|