From c05cd37b1bb3cc017e2f60348df9e6848335f5fb Mon Sep 17 00:00:00 2001 From: Sviatoslav Abakumov Date: Thu, 14 Jan 2016 10:03:19 +0300 Subject: [PATCH] Makefile: Untar archive to specified destination Target 'dist-deb' was failing with untar error: ``` tar: .//build/sunflower-0.3-60.tar: Cannot open: No such file or directory ``` This error was caused by going into $(build_directory) and trying to untar './/build/sunflower-0.3-60.tar' from there. Obviously, this problem had place for 'dist-rpm' target as well. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 78813f1ec..81d7eb649 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ export HELP define dist_install @mkdir -p $(install_directory) # untar archive - @cd $(build_directory); tar -xf $(file_path).tar + @tar -xf $(file_path).tar -C $(build_directory) # install files @install -Dm755 $(working_directory)/dist/sunflower "$(install_directory)/usr/bin/sunflower" @install -d "$(install_directory)/usr/share/sunflower"