libc/newlib/libc/sys/Makefile.am
Jon Turney 0b4cbd2fb8 Make newlib manpages (v3)
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
2016-07-04 14:17:10 +01:00

40 lines
678 B
Makefile

## Process this file with automake to generate Makefile.in
AUTOMAKE_OPTIONS = cygnus
SUBDIRS = $(sys_dir) .
if HAVE_SYS_DIR
SYSLIB = lib.a
endif
noinst_DATA = $(CRT0)
if USE_LIBTOOL
else
noinst_LIBRARIES = $(SYSLIB)
lib.a: $(sys_dir)/lib.a
rm -f $@
ln $(sys_dir)/lib.a $@ >/dev/null 2>/dev/null \
|| cp $(sys_dir)/lib.a $@
endif # USE_LIBTOOL
$(sys_dir)/libsys.$(aext): ; @true
$(CRT0): $(sys_dir)/$(CRT0)
rm -f $@
ln $(sys_dir)/$(CRT0) $@ >/dev/null 2>/dev/null \
|| cp $(sys_dir)/$(CRT0) $@
$(sys_dir)/$(CRT0): ; @true
CLEANFILES = $(CRT0)
doc:
docbook:
ACLOCAL_AMFLAGS = -I ../.. -I ../../..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host