Skip to content

Commit

Permalink
Makefile: Untar archive to specified destination
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Perlence committed Jan 14, 2016
1 parent 1a240cd commit c05cd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c05cd37

Please sign in to comment.