Sha256: 01be1f6f0cff4b60579e5778e4beafb9b4fb17cd9568559501af0334ea0104b0

Contents?: true

Size: 744 Bytes

Versions: 3

Compression:

Stored size: 744 Bytes

Contents

TAGSRC = \
 ../../ruby/include/ruby/*.h \
 ../../ruby/*.c \
 *.h \
 types/*.h \
 *.c \
 types/*.c

tags : TAGS
TAGS : $(TAGSRC)
	etags $(TAGSRC)

doc :
	yard doc *.c types/*.c

C_TMPL = <%=Dir.glob("#{__dir__}/gen/tmpl/*.c").join(" ")%>

COGEN = <%= __dir__ %>/gen/cogen.rb
DTYPE = <%= __dir__ %>/gen/dtype.erb.c
COGEN_DTYPE = $(COGEN) -l $(DTYPE)
DEPENDS = $(C_TMPL) $(DTYPE) <%= __dir__ %>/gen/*.rb

<% Dir.glob("#{__dir__}/gen/def/*.rb") do |s| %>
types/<%=File.basename(s,".rb")%>.c: <%=s%> $(DEPENDS)
	$(MAKEDIRS) $(@D) types
	ruby $(COGEN_DTYPE) <%=s%> > $@
<% end %>

types/bit.c: <%= __dir__ %>/gen/bit.erb.c $(DEPENDS)
	$(MAKEDIRS) $(@D) types
	ruby $(COGEN) -l <%= __dir__ %>/gen/bit.erb.c > $@

CLEANOBJS = *.o */*.o *.bak types/*.c

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numo-narray-0.9.0.1-x64-mingw32 ext/numo/narray/depend.erb
numo-narray-0.9.0.1 ext/numo/narray/depend.erb
numo-narray-0.9.0.1-x86-mingw32 ext/numo/narray/depend.erb