Improve makefile.
This commit is contained in:
parent
5faa00a815
commit
1e37534011
1 changed files with 15 additions and 4 deletions
19
Makefile
19
Makefile
|
@ -1,6 +1,17 @@
|
|||
SOURCES := $(shell cd ./src && find ./ -type f -and -not -name '*.vars')
|
||||
SOURCES := $(shell find ./src -type f -and -not -name '*.vars')
|
||||
SOURCES_REL := $(shell cd ./src && find ./ -type f -and -not -name '*.vars')
|
||||
|
||||
shellcheck:
|
||||
cd ./src && shellcheck ${SOURCES}
|
||||
build: artifacts/docker-marker
|
||||
|
||||
shellcheck: artifacts/shellcheck-log
|
||||
|
||||
artifacts/shellcheck-log: ${SOURCES} artifacts
|
||||
cd ./src && shellcheck ${SOURCES_REL} > ../artifacts/shellcheck-log
|
||||
|
||||
artifacts:
|
||||
mkdir -p artifacts
|
||||
|
||||
artifacts/docker-marker: Dockerfile ${SOURCES} artifacts/shellcheck-log
|
||||
docker build -t redxef/concourse-ssh-resource .
|
||||
touch artifacts/docker-marker
|
||||
|
||||
.PHONY: shellcheck
|
||||
|
|
Loading…
Reference in a new issue