summaryrefslogtreecommitdiff
path: root/manual/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-30 06:56:10 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-30 06:56:10 +0000
commitaaa1276ee31ca872190cd097c7b4d845996fed39 (patch)
treed14e77b1744c5713f4cfff6e86c9417d7ddd8ce8 /manual/Makefile
parent6491b8094e929133e3eb8793bb6296f69fb54a78 (diff)
Update.
* manual/math.texi (Errors in Math Functions): New section. * math/libm-err-tab.pl: Moved to... * manual/libm-err-tab.pl: ...here. * manual/Makefile: Add rules for math function error table generation.
Diffstat (limited to 'manual/Makefile')
-rw-r--r--manual/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/manual/Makefile b/manual/Makefile
index 3c6640e8a7..4b88543129 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -69,7 +69,7 @@ examples = $(filter-out $(foreach d, $(add-ons), ../$d/%.c.texi), \
chapters.% top-menu.%: libc-texinfo.sh $(texis)
AWK=$(AWK) $(SHELL) $< '$(chapters)' '$(add-chapters)' '$(appendices)'
-libc.dvi libc.info: chapters.texi top-menu.texi
+libc.dvi libc.info: chapters.texi top-menu.texi libm-err.texi
libc.dvi: texinfo.tex
# Generate the summary from the Texinfo source files for each chapter.
@@ -89,6 +89,15 @@ dir-add.info: xtract-typefun.awk $(texis)
echo "END-INFO-DIR-ENTRY") > $@.new
mv -f $@.new $@
+# The table with the math errors is generated.
+libm-err.texi: stamp-libm-err
+stamp-libm-err: libm-err-tab.pl $(wildcard $(foreach dir,$(sysdirs),\
+ $(dir)/libm-test-ulps))
+ pwd=`pwd`; \
+ $(PERL) $< $$pwd/.. > libm-err-tmp
+ $(move-if-change) libm-err-tmp libm-err.texi
+ touch $@
+
# Generate Texinfo files from the C source for the example programs.
%.c.texi: examples/%.c
sed -e 's,[{}],@&,g' \
@@ -106,13 +115,14 @@ dir-add.info: xtract-typefun.awk $(texis)
# Distribution.
minimal-dist = summary.awk texis.awk tsort.awk libc-texinfo.sh libc.texinfo \
+ libm-err.texi stamp-libm-err \
$(filter-out summary.texi, $(nonexamples)) \
$(patsubst %.c.texi,examples/%.c, $(examples))
doc-only-dist = Makefile COPYING.LIB
distribute = $(minimal-dist) $(examples) stdio-fp.c \
libc.info* libc.?? libc.??s texinfo.tex \
- xtract-typefun.awk dir-add.info dir
+ xtract-typefun.awk dir-add.info dir libm-err-tab.pl
export distribute := $(distribute)
tar-it = tar chovf $@ $^