From 3741b92737c9c1b6d7381fd10e93d7a55c858296 Mon Sep 17 00:00:00 2001 From: Erik Flodin Date: Sat, 10 Oct 2020 10:12:31 +0200 Subject: [PATCH] Fix setting the default value of version in Makefile As each command in a make target is executed separately, a variable set in one command isn't available in the following commands. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0f83570..d6de052 100644 --- a/Makefile +++ b/Makefile @@ -102,8 +102,8 @@ test: fi .PHONY: testhost +testhost: version ?= HEAD testhost: require-docker - @version=HEAD @rm -rf /tmp/testhost @git show $(version):yadm > /tmp/testhost @chmod a+x /tmp/testhost @@ -117,8 +117,8 @@ testhost: require-docker bash -l .PHONY: scripthost +scripthost: version ?= HEAD scripthost: require-docker - @version=HEAD @rm -rf /tmp/testhost @git show $(version):yadm > /tmp/testhost @chmod a+x /tmp/testhost