Skip to content

Commit 5193e8b

Browse files
committed
Install in prefix/bin.
1 parent 11dcafd commit 5193e8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Rakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ end
99

1010
desc "Install a Release build"
1111
task :install => :build do
12-
if (prefix = ENV['prefix']) && File.directory?(prefix)
13-
cp 'build/Release/ios-sim', prefix
12+
if prefix = ENV['prefix']
13+
bin_dir = File.join(prefix, 'bin')
14+
mkdir_p bin_dir
15+
cp 'build/Release/ios-sim', bin_dir
1416
else
1517
puts "[!] Specify a directory as the install prefix with the `prefix' env variable"
1618
exit 1

0 commit comments

Comments
 (0)