Makefile
5de2fbd6
 SCRIPTS=install.sh \
d388168a
 mulle-bootstrap-brew.sh \
5de2fbd6
 mulle-bootstrap-build.sh \
 mulle-bootstrap-clean.sh \
7fdfcd11
 mulle-bootstrap-convert-pre-0.10.sh \
5de2fbd6
 mulle-bootstrap-fetch.sh \
 mulle-bootstrap-functions.sh \
b06853c1
 mulle-bootstrap-gcc.sh \
5de2fbd6
 mulle-bootstrap-init.sh \
 mulle-bootstrap-local-environment.sh \
8e817cc1
 mulle-bootstrap-settings.sh \
7fdfcd11
 mulle-bootstrap-scm.sh \
d7f96955
 mulle-bootstrap-scripts.sh \
5de2fbd6
 mulle-bootstrap-tag.sh \
8e817cc1
 mulle-bootstrap-warn-scripts.sh \
 mulle-bootstrap-xcode.sh
5de2fbd6
 
 CHECKSTAMPS=$(SCRIPTS:.sh=.chk)
e3e80f18
 SHELLFLAGS=-x -e SC2164,SC2166,SC2006 -s sh
5de2fbd6
 
 .PHONY: all
 .PHONY: clean
8ca22e9e
 .PHONY: shellcheck_check
5de2fbd6
 
4b493841
 %.chk:	%.sh
 		- shellcheck $(SHELLFLAGS) $<
23cfa536
 		(shellcheck -f json $(SHELLFLAGS) $< | jq '.[].level' | grep -w error > /dev/null ) && exit 1 || touch $@
5de2fbd6
 
4b493841
 all:	$(CHECKSTAMPS) mulle-bootstrap.chk shellcheck_check jq_check
5de2fbd6
 
4b493841
 mulle-bootstrap.chk:	mulle-bootstrap
 		- shellcheck $(SHELLFLAGS) $<
23cfa536
 		(shellcheck -f json $(SHELLFLAGS) $< | jq '.[].level' | grep -w error > /dev/null ) && exit 1 || touch $@
5de2fbd6
 
 install:
b06853c1
 	@ ./install.sh
5de2fbd6
 
 clean:
 	@- rm *.chk
 
8ca22e9e
 shellcheck_check:
 	which shellcheck || brew install shellcheck
 
4b493841
 jq_check:
 		which shellcheck || brew install shellcheck