mirror of
				https://github.com/TheLocehiliosan/yadm
				synced 2025-06-13 13:03:58 +00:00 
			
		
		
		
	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
					
				
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user