forked from 13pgeiser/debian_chromebook_XE303C12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (15 loc) · 920 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: check run
check:
docker run --rm -v "$(shell pwd)/scripts":/mnt mvdan/shfmt -d /mnt/build.sh
docker run --rm -v "$(shell pwd)/scripts":/mnt mvdan/shfmt -d /mnt/docker_build.sh
docker run --rm -v "$(shell pwd)/scripts":/mnt mvdan/shfmt -d /mnt/install.sh
docker run --rm -e SHELLCHECK_OPTS="" -v "$(shell pwd)/scripts":/mnt koalaman/shellcheck:stable -x build.sh
docker run --rm -e SHELLCHECK_OPTS="" -v "$(shell pwd)/scripts":/mnt koalaman/shellcheck:stable -x docker_build.sh
docker run --rm -e SHELLCHECK_OPTS="" -v "$(shell pwd)/scripts":/mnt koalaman/shellcheck:stable -x install.sh
format:
docker run --rm -v "$(shell pwd)/scripts":/mnt mvdan/shfmt -w /mnt/build.sh
docker run --rm -v "$(shell pwd)/scripts":/mnt mvdan/shfmt -w /mnt/docker_build.sh
docker run --rm -v "$(shell pwd)/scripts":/mnt mvdan/shfmt -w /mnt/install.sh
run:
bash ./scripts/docker_build.sh || true
.PHONY: check format run