mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-17 03:49:46 +08:00
0b4cbd2fb8
Add makedocbook, a tool to process makedoc markup and output DocBook XML refentries. Process all the source files which are processed with makedoc with makedocbook as well Add chapter-texi2docbook, a tool to automatically generate DocBook XML chapter files from the chapter .texi files. For generating man pages all we care about is the content of the refentries, so all this needs to do is convert the @include of the makedoc generated .def files to xi:include of the makedocbook generated .xml files. Add skeleton Docbook XML book files, lib[cm].in.xml which include these generated chapters, which in turn include the generated files containing refentries, which is processed with xsltproc to generate the lib[cm].xml Add new make targets to generate and install man pages from lib[cm].xml
24 lines
682 B
Makefile
24 lines
682 B
Makefile
## Process this file with automake to generate Makefile.in
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
# We can't use noinst_PROGRAMS, because automake will add $(EXEEXT).
|
|
noinst_DATA = makedoc
|
|
|
|
MKDOC = makedoc$(EXEEXT_FOR_BUILD)
|
|
|
|
# We don't use CFLAGS with CC_FOR_BUILD because here CFLAGS will
|
|
# actually be CFLAGS_FOR_TARGET, and in some cases that will include
|
|
# -Os, which CC_FOR_BUILD may not recognize.
|
|
|
|
$(MKDOC): makedoc.o
|
|
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $(MKDOC) makedoc.o
|
|
|
|
makedoc.o: makedoc.c
|
|
$(CC_FOR_BUILD) -g $(CFLAGS_FOR_BUILD) -c $(srcdir)/makedoc.c
|
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../..
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|
|
|
|
man:
|