ext/zigrb_ackermann/extconf.rb in zig_example-0.3.0 vs ext/zigrb_ackermann/extconf.rb in zig_example-0.3.1

- old
+ new

@@ -1,20 +1,3 @@ -require 'mkmf' +require_relative '../mkmf' -$objs = [''] -$srcs = [''] -TARGET = 'libzigrb_ackermann' - -create_makefile TARGET -File.open('Makefile', 'a') do |f| - f.puts <<~MFILE - - clean: clean-zig - clean-zig: - \t-$(Q)$(RM) -rf zig-cache zig-out - - #{TARGET}.so: Makefile build.zig src/main.zig - \tenv -u DESTDIR RUBYLIBDIR=$(rubylibdir) RUBYHDRDIR=$(rubyhdrdir) RUBYARCHHDRDIR=$(rubyarchhdrdir) zig build -Doptimize=ReleaseSafe test install - \tcp -v zig-out/lib/#{TARGET}.so . - - MFILE -end +create_makefile 'libzigrb_ackermann'