浏览代码

doc: include source code for the vector scaling example

Nathalie Furmento 15 年之前
父节点
当前提交
74e4e7e6a9
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      doc/Makefile.am

+ 6 - 0
doc/Makefile.am

@@ -21,3 +21,9 @@ MAINTAINERCLEANFILES = starpu.pdf
 EXTRA_DIST = starpu.pdf
 
 AM_MAKEINFOHTMLFLAGS = --css-include=$(top_srcdir)/doc/starpu.css --no-headers --no-split
+
+$(top_srcdir)/doc/starpu.texi: vector_scal_c.texi vector_scal_cuda.texi
+vector_scal_c.texi: $(top_srcdir)/examples/basic_examples/vector_scal.c
+	cat $< | sed 's/{/@{/g' | sed 's/}/@}/g' | sed 's/\t/    /' > $@
+vector_scal_cuda.texi: $(top_srcdir)/examples/basic_examples/vector_scal_cuda.cu
+	cat $< | sed 's/{/@{/g' | sed 's/}/@}/g' | sed 's/\t/    /' > $@