aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/Makefile.am
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-21 20:59:36 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-04 19:39:09 -0500
commit44f6310bf93748ca1d55abcb9a2c82a432643256 (patch)
treea9d522ba89b70df7b31e4457f52945ce78b3bb3c /newlib/libc/Makefile.am
parent3365bd2f7a8926457e13699c827a59b0c547bbd2 (diff)
downloadnewlib-44f6310bf93748ca1d55abcb9a2c82a432643256.zip
newlib-44f6310bf93748ca1d55abcb9a2c82a432643256.tar.gz
newlib-44f6310bf93748ca1d55abcb9a2c82a432643256.tar.bz2
newlib: libc: include all chapters all the time in the manual
THe stdio subdir is actually required by the documentation. The stdio/def is handled dynamically, but libc.texi always expects it to be included, and fails if it isn't. So making it required when building docs is safe. The xdr subdir is handled dynamically, but it doesn't include any docs, so the dynamic logic isn't (currently) adding any value. So making it required when building docs is safe. That leaves: iconv, stdio64, posix, and signal subdirs. The chapters have a little disclaimer saying they are system-dependent, but even then, imo having stable manuals regardless of the target is preferable, and we can add more disclaimer language to these chapters if we want. This doesn't touch the man page codepaths, just the info/pdf.
Diffstat (limited to 'newlib/libc/Makefile.am')
-rw-r--r--newlib/libc/Makefile.am63
1 files changed, 8 insertions, 55 deletions
diff --git a/newlib/libc/Makefile.am b/newlib/libc/Makefile.am
index 5151e00..4e0b8fd 100644
--- a/newlib/libc/Makefile.am
+++ b/newlib/libc/Makefile.am
@@ -131,12 +131,12 @@ $(SUBLIBS): ; @true
SUBDEFS = \
stdlib/stmp-def \
ctype/stmp-def \
- $(LIBC_STDIO_DEF) \
- $(LIBC_STDIO64_DEF) \
- $(LIBC_POSIX_DEF) \
- $(LIBC_XDR_DEF) \
+ stdio/stmp-def \
+ stdio64/stmp-def \
+ posix/stmp-def \
+ xdr/stmp-def \
string/stmp-def \
- $(LIBC_SIGNAL_DEF) \
+ signal/stmp-def \
time/stmp-def \
locale/stmp-def \
reent/stmp-def \
@@ -145,55 +145,9 @@ SUBDEFS = \
# ditto for stmp-xml files in each subdirectory which builds .xml files
SUBXMLS = $(SUBDEFS:stmp-def=stmp-xml)
-libc.info: sigset.texi stdio64.texi posix.texi iconvset.texi \
- targetdep.tex $(SUBDEFS)
+libc.info: targetdep.tex $(SUBDEFS)
-libc.dvi: sigset.texi stdio64.texi posix.texi iconvset.texi \
- targetdep.tex $(SUBDEFS)
-
-stmp-sigset: config.status
- if test -n "$(LIBC_SIGNAL_LIB)"; then \
- echo "@set SIGNALS" >tmp-sigset.texi; \
- else \
- echo "@clear SIGNALS" >tmp-sigset.texi; \
- fi
- $(SHELL) $(newlib_basedir)/../move-if-change tmp-sigset.texi sigset.texi
- touch $@
-
-sigset.texi: stmp-sigset ; @true
-
-stmp-iconvset: config.status
- if test -n "$(NEWLIB_ICONV_LIBS)"; then \
- echo "@set ICONV" >tmp-iconvset.texi; \
- else \
- echo "@clear ICONV" >tmp-iconvset.texi; \
- fi
- $(SHELL) $(newlib_basedir)/../move-if-change tmp-iconvset.texi iconvset.texi
- touch $@
-
-iconvset.texi: stmp-iconvset ; @true
-
-stmp-stdio64: config.status
- if test -n "$(LIBC_STDIO64_LIB)"; then \
- echo "@set STDIO64" >tmp-stdio64.texi; \
- else \
- echo "@clear STDIO64" >tmp-stdio64.texi; \
- fi
- $(SHELL) $(newlib_basedir)/../move-if-change tmp-stdio64.texi stdio64.texi
- touch $@
-
-stdio64.texi: stmp-stdio64 ; @true
-
-stmp-posix: config.status
- if test -n "$(LIBC_POSIX_LIB)"; then \
- echo "@set POSIX" >tmp-posix.texi; \
- else \
- echo "@clear POSIX" >tmp-posix.texi; \
- fi
- $(SHELL) $(newlib_basedir)/../move-if-change tmp-posix.texi posix.texi
- touch $@
-
-posix.texi: stmp-posix ; @true
+libc.dvi: targetdep.tex $(SUBDEFS)
stmp-targetdep: force
rm -f tmp-targetdep.texi
@@ -213,8 +167,7 @@ $(SUBDEFS): stmp-targetdep ; @true
TEXINFO_TEX = ../../texinfo/texinfo.tex
info_TEXINFOS = libc.texi
-libc_TEXINFOS = sigset.texi posix.texi stdio64.texi iconvset.texi \
- targetdep.tex $(SUBDEFS)
+libc_TEXINFOS = targetdep.tex $(SUBDEFS)
docbook-recursive: force
for d in $(SUBDIRS); do \