Sha256: 3b657c6d4ec39ccdc0acb038df8fa1a67d5828bfd5f898446154de91b5031a8f

Contents?: true

Size: 973 Bytes

Versions: 2

Compression:

Stored size: 973 Bytes

Contents

Q=@
ifdef V
Q=
endif

UNAME := $(shell uname)

LIBXLSXWRITER_SO = libxlsxwriter.so

ifeq ($(UNAME), Darwin)
LIBXLSXWRITER_SO = libxlsxwriter.dylib
endif

# Check for MinGW/MinGW64/Cygwin environments.
ifneq (,$(findstring MINGW, $(UNAME)))
MING_LIKE = y
endif
ifneq (,$(findstring MSYS, $(UNAME)))
MING_LIKE = y
endif
ifneq (,$(findstring CYGWIN, $(UNAME)))
MING_LIKE = y
endif

ifdef MING_LIKE
LIBXLSXWRITER_SO = libxlsxwriter.dll
endif

# with xcode better to use cmake
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),"Darwin")
	USE_CMAKE := $(shell command -v cmake 2> /dev/null)
endif

ifndef ($(sitearchdir))
	sitearchdir = './lib'
endif

all :
	# @echo "Compiling ext/text_width ..."
	# rake compile
	@echo "Compiling libxlsxwriter ..."
ifdef USE_CMAKE
	@echo "run cmake libxlsxwriter ..."
	cmake libxlsxwriter
else
	$(Q)$(MAKE) -C libxlsxwriter
endif

clean :
	$(Q)$(MAKE) clean -C libxlsxwriter

install :
	$(Q)cp libxlsxwriter/lib/$(LIBXLSXWRITER_SO) $(sitearchdir)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fast_excel-0.5.0 Makefile
fast_excel-0.4.1 Makefile