diff options
Diffstat (limited to 'newlib/Makefile.shared')
-rw-r--r-- | newlib/Makefile.shared | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/newlib/Makefile.shared b/newlib/Makefile.shared index 50e2f0cd5..6e026fdf0 100644 --- a/newlib/Makefile.shared +++ b/newlib/Makefile.shared @@ -5,3 +5,24 @@ objectlist.awk.in: $(noinst_LTLIBRARIES) echo $$i `pwd`/$$i >> objectlist.awk.in ; \ done +# +# documentation rules +# + +SUFFIXES = .def + +CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str + +.c.def: + $(CHEW) < $< > $*.def 2> $*.ref + touch stmp-def + +TARGETDOC ?= ../tmp.texi + +doc: $(CHEWOUT_FILES) + for chapter in $(CHAPTERS) ; \ + do \ + cat $(srcdir)/$$chapter >> $(TARGETDOC) ; \ + done + +CLEANFILES = $(CHEWOUT_FILES) *.ref |