Improve makefile.

This commit is contained in:
redxef 2022-05-06 15:51:08 +02:00
parent 5faa00a815
commit 1e37534011
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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