diff options
Diffstat (limited to 'newlib/libc/ctype/Makefile.in')
-rw-r--r-- | newlib/libc/ctype/Makefile.in | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/newlib/libc/ctype/Makefile.in b/newlib/libc/ctype/Makefile.in index c3ef2417e..dc41adcfe 100644 --- a/newlib/libc/ctype/Makefile.in +++ b/newlib/libc/ctype/Makefile.in @@ -343,9 +343,12 @@ libctype_la_LDFLAGS = -Xcompiler -nostdlib # # documentation rules # -SUFFIXES = .def +SUFFIXES = .def .xml CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str -CLEANFILES = $(CHEWOUT_FILES) *.ref +DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py +DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml) +DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml) +CLEANFILES = $(CHEWOUT_FILES) $(CHEWOUT_FILES:.def=.ref) $(DOCBOOK_OUT_FILES) CHEWOUT_FILES = \ isalnum.def \ isalpha.def \ @@ -385,7 +388,7 @@ CHAPTERS = ctype.tex all: all-am .SUFFIXES: -.SUFFIXES: .def .c .lo .o .obj +.SUFFIXES: .def .xml .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../Makefile.shared $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ @@ -857,6 +860,16 @@ doc: $(CHEWOUT_FILES) cat $(srcdir)/$$chapter >> $(TARGETDOC) ; \ done +.c.xml: + $(DOCBOOK_CHEW) < $< > $*.xml || ( rm $*.xml && false ) + @touch stmp-xml + +docbook: $(DOCBOOK_OUT_FILES) + for chapter in $(DOCBOOK_CHAPTERS) ; \ + do \ + ${top_srcdir}/../doc/chapter-texi2docbook.py <$(srcdir)/$${chapter%.xml}.tex >../$$chapter ; \ + done + $(lpfx)ctype_.$(oext): ctype_.c ctype_iso.h ctype_cp.h # Tell versions [3.59,3.63) of GNU make to not export all variables. |