diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-01-21 22:50:42 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-05 00:17:54 -0500 |
commit | 6026ef29d8c847716a745bb6e11aa1d2c36a2b64 (patch) | |
tree | 40480f5dca7020ed9a6aaa762e4faede55b1cf8d /newlib/libc/Makefile.am | |
parent | fc2b4ffee0ec7697a02ae7185f1acb7927f2f115 (diff) | |
download | newlib-6026ef29d8c847716a745bb6e11aa1d2c36a2b64.zip newlib-6026ef29d8c847716a745bb6e11aa1d2c36a2b64.tar.gz newlib-6026ef29d8c847716a745bb6e11aa1d2c36a2b64.tar.bz2 |
newlib: move man page generation into top-level build
This allows building the libc & libm pages in parallel, and drops
the duplication in the subdirs with the chew/chapter settings.
The unused rules in Makefile.shared are left in place to minimize
noise in the change.
Diffstat (limited to 'newlib/libc/Makefile.am')
-rw-r--r-- | newlib/libc/Makefile.am | 78 |
1 files changed, 7 insertions, 71 deletions
diff --git a/newlib/libc/Makefile.am b/newlib/libc/Makefile.am index 4e0b8fd..7e41b91 100644 --- a/newlib/libc/Makefile.am +++ b/newlib/libc/Makefile.am @@ -124,77 +124,13 @@ endif # USE_LIBTOOL $(SUBLIBS): ; @true -# This is a list of the stmp-def files in each subdirectory which -# builds .def files. We don't list subdirectories which don't build -# .def files; if the list of subdirectories changes, we must change -# this as well. -SUBDEFS = \ - stdlib/stmp-def \ - ctype/stmp-def \ - stdio/stmp-def \ - stdio64/stmp-def \ - posix/stmp-def \ - xdr/stmp-def \ - string/stmp-def \ - signal/stmp-def \ - time/stmp-def \ - locale/stmp-def \ - reent/stmp-def \ - misc/stmp-def - -# ditto for stmp-xml files in each subdirectory which builds .xml files -SUBXMLS = $(SUBDEFS:stmp-def=stmp-xml) - -libc.info: targetdep.tex $(SUBDEFS) - -libc.dvi: targetdep.tex $(SUBDEFS) - -stmp-targetdep: force - rm -f tmp-targetdep.texi - targetdoc=`pwd`/tmp-targetdep.texi; \ - for d in $(SUBDIRS); do \ - if test "$$d" != "." && test "$$d" != "$(LIBC_MACHINE_DIR)"; then \ - (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \ - fi; \ - done - cat $(srcdir)/sys.tex >>tmp-targetdep.texi - $(SHELL) $(newlib_basedir)/../move-if-change tmp-targetdep.texi targetdep.tex - touch $@ - -targetdep.tex: stmp-targetdep ; @true - -$(SUBDEFS): stmp-targetdep ; @true - -TEXINFO_TEX = ../../texinfo/texinfo.tex -info_TEXINFOS = libc.texi -libc_TEXINFOS = targetdep.tex $(SUBDEFS) - -docbook-recursive: force - for d in $(SUBDIRS); do \ - if test "$$d" != "." && test "$$d" != "$(LIBC_MACHINE_DIR)"; then \ - (cd $$d && $(MAKE) docbook) || exit 1; \ - fi; \ - done - -$(SUBXMLS): docbook-recursive - -man: $(SUBXMLS) libc.in.xml - xsltproc --xinclude --path ${builddir} --nonet ${srcdir}/../refcontainers.xslt ${srcdir}/libc.in.xml >libc.xml - xmlto --skip-validation man -m ${srcdir}/../man.xsl libc.xml - -install-man: man - mkdir -p $(DESTDIR)$(mandir)/man3 - $(INSTALL_DATA) *.3 $(DESTDIR)$(mandir)/man3 - -.PHONY: force -force: - -CLEANFILES = \ - sigset.texi stmp-sigset \ - stdio64.texi stmp-stdio64 targetdep.tex stmp-targetdep \ - tmp-sigset.texi tmp-iconvset.texi \ - tmp-stdio64.texi tmp-posix.texi tmp-targetdep.texi \ - *.xml *.3 +crt0.o: sys/crt0.o + rm -f $@ + ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@ + +sys/crt0.o: ; @true + +CLEANFILES = $(CRT0) ACLOCAL_AMFLAGS = -I .. -I ../.. -I ../../config CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host |