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.
This commit is contained in:
parent
95c17d0bc5
commit
3741b92737
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -102,8 +102,8 @@ test:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: testhost
|
.PHONY: testhost
|
||||||
|
testhost: version ?= HEAD
|
||||||
testhost: require-docker
|
testhost: require-docker
|
||||||
@version=HEAD
|
|
||||||
@rm -rf /tmp/testhost
|
@rm -rf /tmp/testhost
|
||||||
@git show $(version):yadm > /tmp/testhost
|
@git show $(version):yadm > /tmp/testhost
|
||||||
@chmod a+x /tmp/testhost
|
@chmod a+x /tmp/testhost
|
||||||
|
@ -117,8 +117,8 @@ testhost: require-docker
|
||||||
bash -l
|
bash -l
|
||||||
|
|
||||||
.PHONY: scripthost
|
.PHONY: scripthost
|
||||||
|
scripthost: version ?= HEAD
|
||||||
scripthost: require-docker
|
scripthost: require-docker
|
||||||
@version=HEAD
|
|
||||||
@rm -rf /tmp/testhost
|
@rm -rf /tmp/testhost
|
||||||
@git show $(version):yadm > /tmp/testhost
|
@git show $(version):yadm > /tmp/testhost
|
||||||
@chmod a+x /tmp/testhost
|
@chmod a+x /tmp/testhost
|
||||||
|
|
Loading…
Reference in a new issue