diff --git a/Makefile b/Makefile index e175d6b..a63353a 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,19 @@ -SHELL = /bin/bash +SHELL = /bin/bash +ROOT_DIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) .PHONY: acceptance acceptance: - @scripts/acceptance.sh + @$(ROOT_DIR)/scripts/acceptance.sh .PHONY: github-actions-ci github-actions-ci: - @scripts/github-actions-ci.sh + @$(ROOT_DIR)/scripts/github-actions-ci.sh .PHONY: github-actions-ci-local github-actions-ci-local: docker run -it --rm \ - -v $(shell pwd):/tmp/acceptance-testing \ + -v $(ROOT_DIR):/tmp/acceptance-testing \ -w /tmp/acceptance-testing \ --privileged -v /var/run/docker.sock:/var/run/docker.sock \ --entrypoint=/bin/bash ubuntu:latest \ - -c 'set +e; scripts/github-actions-ci.sh; echo "Exited $?. (Ctrl+D to exit shell)"; bash' \ No newline at end of file + -c 'set +e; scripts/github-actions-ci.sh; echo "Exited $?. (Ctrl+D to exit shell)"; bash'