Sha256: fd09a87f4f5107b915a9c635e6e98a4bdab20a72205dac919c42a7edb9d9b127

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

require '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 test install
    \tcp -v zig-out/lib/#{TARGET}.so .

  MFILE
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zig_example-0.2.0 ext/zigrb_ackermann/extconf.rb