File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- COGEN=ruby gen/cogen.rb -l
2
- GENDEPS=gen/*.rb tmpl/*.c
1
+ COGEN=<%= " ruby #{__dir__}/ gen/cogen.rb -l" %>
2
+ GENDEPS=<%= "#{__dir__}/ gen/*.rb #{__dir__}/ tmpl/*.c" %>
3
3
4
4
<%
5
5
srcs = %w[s d c z].map{|c| [c, "blas_#{c}.c"]}
Original file line number Diff line number Diff line change 36
36
end
37
37
38
38
create_site_conf
39
- create_depend
39
+ create_depend ( __dir__ )
40
40
create_makefile ( 'numo/linalg/blas' )
Original file line number Diff line number Diff line change 1
- COGEN=ruby gen/cogen.rb -l
2
- GENDEPS=gen/*.rb tmpl/*.c
1
+ COGEN=<%= " ruby #{__dir__}/ gen/cogen.rb -l" %>
2
+ GENDEPS=<%= "#{__dir__}/ gen/*.rb #{__dir__}/ tmpl/*.c" %>
3
3
4
4
<%
5
5
srcs = %w[s d c z].map{|c| [c, "lapack_#{c}.c"]}
Original file line number Diff line number Diff line change 36
36
exit ( 1 ) unless have_func ( "LoadLibrary" )
37
37
end
38
38
39
- create_depend
39
+ create_depend ( __dir__ )
40
40
create_makefile ( 'numo/linalg/lapack' )
Original file line number Diff line number Diff line change @@ -69,12 +69,12 @@ def find_libnarray_a
69
69
end
70
70
end
71
71
72
- def create_depend
72
+ def create_depend ( base_dir )
73
73
require 'erb'
74
74
message "creating depend\n "
75
- dep_path = File . join ( Dir . pwd , " depend")
75
+ dep_path = " #{ base_dir } / depend"
76
76
File . open ( dep_path , "w" ) do |dep |
77
- dep_erb_path = File . join ( Dir . pwd , " depend.erb")
77
+ dep_erb_path = " #{ base_dir } / depend.erb"
78
78
File . open ( dep_erb_path , "r" ) do |dep_erb |
79
79
erb = ERB . new ( dep_erb . read )
80
80
erb . filename = dep_erb_path
You can’t perform that action at this time.
0 commit comments