Improve Makefile example

Miguel Angel
2018-02-14 00:07:18 -04:00
parent 7bbd1eb1f5
commit 2d5bc1ffd4

@@ -95,7 +95,7 @@ language: bash
before_install:
- wget -c https://goo.gl/ZzKHFv -O - | tar -xvJ -C /tmp/
- PATH="/tmp/shellcheck-latest:$PATH"
script: shellcheck **/*.sh
script: shellcheck */**/*.sh
```
> Makefiles can easily integrate it
@@ -104,13 +104,11 @@ script: shellcheck **/*.sh
```Makefile
.PHONY: lint
lint: vendor/shellcheck
vendor/shellcheck **/*.sh
lint: /tmp/shellcheck-latest/shellcheck
$< */**/*.sh
vendor/shellcheck:
/tmp/shellcheck-latest/shellcheck:
wget -c 'https://goo.gl/ZzKHFv' -O - | tar -xvJ -C /tmp/
mkdir -p vendor/
cp /tmp/shellcheck-latest/shellcheck $@
```
`.travis.yml`: