mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Refactor extconf.rb
This commit is contained in:
parent
7fe30b2e41
commit
5ddbce1ab0
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ require 'mkmf'
|
||||||
|
|
||||||
houdini_dir = File.expand_path('./houdini', __dir__)
|
houdini_dir = File.expand_path('./houdini', __dir__)
|
||||||
$INCFLAGS << " -I#{houdini_dir}"
|
$INCFLAGS << " -I#{houdini_dir}"
|
||||||
$CFLAGS << ' -Wall -Wextra'
|
$CFLAGS << ' -Wall -Wextra'
|
||||||
|
|
||||||
$srcs = %w[hamlit.c]
|
$srcs = %w[hamlit.c]
|
||||||
Dir[File.join(houdini_dir, '*.c')].each do |path|
|
Dir[File.join(houdini_dir, '*.c')].each do |path|
|
||||||
src = File.basename(path)
|
src = File.basename(path)
|
||||||
FileUtils.ln_s(File.join(houdini_dir, src), src, force: true)
|
FileUtils.ln_s(path, src, force: true)
|
||||||
$srcs << src
|
$srcs << src
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue