Sha256: 356bb5c70aaaa3cf485514af2ca4b4fdeec2dc68f791d1b27f0967acb130ff83

Contents?: true

Size: 700 Bytes

Versions: 3

Compression:

Stored size: 700 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
DEPENDS = $(C_TMPL) $(DTYPE) <%= __dir__ %>/gen/*.rb

<%
   type_c = ["types/bit.c"]
   type_rb = Dir.glob("#{__dir__}/gen/def/*.rb")
   type_rb.each do |s|
     type_c << c = "types/"+File.basename(s,".rb")+".c"
%>
<%=c%>: <%=s%> $(DEPENDS)
	$(MAKEDIRS) $(@D) types
	ruby $(COGEN) -l -o $@ $(DTYPE) <%=s%>
<% end %>

src : <%= type_c.join(" ") %>

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

Version data entries

3 entries across 3 versions & 1 rubygems

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