2
0
mirror of https://github.com/boostorg/hana.git synced 2026-01-24 05:52:14 +00:00
Files
hana/sublime_make

13 lines
337 B
Ruby
Executable File

#!/usr/bin/env ruby
require 'pathname'
current_file, = Pathname.new(ARGV[0])
project_path = Pathname.getwd
relative = current_file.relative_path_from(project_path)
target = relative.sub_ext('').to_s.gsub('/', '.')
executable = project_path + 'build' + relative.to_s.split('/')[0] + target
`make -C build #{target} && #{executable}`