-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.shellcheck
46 lines (36 loc) · 1.07 KB
/
Makefile.shellcheck
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
SCRIPTS=./bin/installer \
src/mulle-array.sh \
src/mulle-bashloader.sh \
src/mulle-compatibility.sh \
src/mulle-etc.sh \
src/mulle-exekutor.sh \
src/mulle-file.sh \
src/mulle-init.sh \
src/mulle-logging.sh \
src/mulle-options.sh \
src/mulle-parallel.sh \
src/mulle-path.sh \
src/mulle-string.sh \
src/mulle-url.sh \
src/mulle-version-qualifier.sh \
src/mulle-version.sh
CHECKSTAMPS=$(SCRIPTS:.sh=.chk)
SHELLFLAGS=-x -e SC2164,SC2166,SC2006,SC2236,SC1091,SC2039,SC2181,SC2059 -s sh
.PHONY: all
.PHONY: clean
.PHONY: shellcheck_check
%.chk: %.sh
- shellcheck $(SHELLFLAGS) $<
(shellcheck -f json $(SHELLFLAGS) $< | jq '.[].level' | grep -w error > /dev/null ) && exit 1 || touch $@
all: $(CHECKSTAMPS) mulle-bashfunctions.chk shellcheck_check jq_check
mulle-bashfunctions.chk: mulle-bashfunctions
- shellcheck $(SHELLFLAGS) $<
(shellcheck -f json $(SHELLFLAGS) $< | jq '.[].level' | grep -w error > /dev/null ) && exit 1 || touch $@
installer:
@ ./bin/installer
clean:
@- rm *.chk
shellcheck_check:
which shellcheck || brew install shellcheck
jq_check:
which jq || brew install jq