Makefile
5de2fbd6
 SCRIPTS=install.sh \
8f951e19
 	src/mulle-bootstrap-array.sh \
 	src/mulle-bootstrap-auto-update.sh \
 	src/mulle-bootstrap-brew.sh \
 	src/mulle-bootstrap-build.sh \
 	src/mulle-bootstrap-clean.sh \
 	src/mulle-bootstrap-common-settings.sh \
 	src/mulle-bootstrap-copy.sh \
 	src/mulle-bootstrap-dependency-resolve.sh \
 	src/mulle-bootstrap-fetch.sh \
 	src/mulle-bootstrap-functions.sh \
 	src/mulle-bootstrap-gcc.sh \
 	src/mulle-bootstrap-init.sh \
 	src/mulle-bootstrap-local-environment.sh \
 	src/mulle-bootstrap-logging.sh \
 	src/mulle-bootstrap-mingw.sh \
 	src/mulle-bootstrap-repositories.sh \
 	src/mulle-bootstrap-scm.sh \
 	src/mulle-bootstrap-scripts.sh \
 	src/mulle-bootstrap-settings.sh \
96879641
 	src/mulle-bootstrap-systeminstall.sh \
8f951e19
 	src/mulle-bootstrap-tag.sh \
 	src/mulle-bootstrap-warn-scripts.sh \
 	src/mulle-bootstrap-xcode.sh \
 	src/mulle-bootstrap-zombify.sh
5de2fbd6
 
 CHECKSTAMPS=$(SCRIPTS:.sh=.chk)
8f951e19
 SHELLFLAGS=-x -e SC2164,SC2166,SC2006,SC1091,SC2039,SC2181,SC2059 -s sh
5de2fbd6
 
 .PHONY: all
 .PHONY: clean
8ca22e9e
 .PHONY: shellcheck_check
5de2fbd6
 
4b493841
 %.chk:	%.sh
8f951e19
 	- shellcheck $(SHELLFLAGS) $<
 	(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
8f951e19
 	- shellcheck $(SHELLFLAGS) $<
 	(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:
8f951e19
 	which shellcheck || brew install shellcheck