Sha256: 7a5634a33046ce9a7df95efe30cc3bf56aa177facf7b69607ed509f80bf2498f

Contents?: true

Size: 631 Bytes

Versions: 3

Compression:

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

<%
   type_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 $@ <%=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.1.5 ext/numo/narray/depend.erb
numo-narray-0.9.1.4 ext/numo/narray/depend.erb
numo-narray-0.9.1.3 ext/numo/narray/depend.erb