Sha256: 68d857fbbfcb89f6603defb3c114af3038b1fdfa666fbbbbba522b12ddc75785

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

LIB = excel

ifeq ($(OS),Windows_NT)
	# Windows
	LIB := $(LIB).dll
else
	UNAME_S := $(shell uname -s)
	ifeq ($(UNAME_S),Linux)
		# Linux
		LIB := $(LIB).so
	else
		ifeq ($(UNAME_S),Darwin)
			# Mac
			LIB := $(LIB).dylib
		endif
	endif
endif

build: ext/$(LIB)
	gem build f_xlsx.gemspec -o pkg/f_xlsx-0.3.0.gem

ext/$(LIB): ext/types.h ext/excel.h ext/xlsx.go
	cd ext && go mod tidy && go build -buildmode=c-shared -o $(LIB) xlsx.go

clean:
	rm -f ext/$(LIB) pkg/f_xlsx-*.gem
test:
	ruby test.rb
stop: test.pid
	kill -2 $$(cat test.pid)
	rm test.pid
	

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
f_xlsx-0.3.0 Makefile