Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2015-11-03 02:00:28 +0300
committerJeff Johnston <jjohnstn@redhat.com>2015-11-03 02:02:39 +0300
commit06312793945e184036b9491767b9eacac9be3890 (patch)
treeb8e4fbafe646bf9b186d1b93ff56d0f7c7794658 /newlib/libm/mathfp
parent53617ce4e634bd6f67e6e08939518dba77dee3f1 (diff)
Move duplicated documentation rules to Makefile.shared
- Also, harmonize libm to use CHEWOUT_FILES like libc, rather than chobj. Update documentation appropriately. * HOWTO: Update. * Makefile.shared: Move documentation rules to here... * libc/argz/Makefile.am: ... from here ... * libc/ctype/Makefile.am: ... and here. * libc/errno/Makefile.am: Ditto. * libc/iconv/Makefile.am: Ditto. * libc/iconv/ccs/Makefile.am : Ditto. * libc/iconv/ces/Makefile.am: Ditto. * libc/iconv/lib/Makefile.am: Ditto. * libc/locale/Makefile.am: Ditto. * libc/misc/Makefile.am: Ditto. * libc/posix/Makefile.am: Ditto. * libc/reent/Makefile.am: Ditto. * libc/search/Makefile.am: Ditto. * libc/stdio/Makefile.am: Ditto. * libc/stdio64/Makefile.am: Ditto. * libc/stdlib/Makefile.am : Ditto. * libc/string/Makefile.am: Ditto. * libc/syscalls/Makefile.am: Ditto. * libc/time/Makefile.am : Ditto. * libc/unix/Makefile.am: Ditto. * libc/xdr/Makefile.am: Ditto. * libm/common/Makefile.am: Ditto. * libm/complex/Makefile.am: Ditto. * libm/math/Makefile.am: Ditto. * libm/mathfp/Makefile.am: Ditto.
Diffstat (limited to 'newlib/libm/mathfp')
-rw-r--r--newlib/libm/mathfp/Makefile.am17
-rw-r--r--newlib/libm/mathfp/Makefile.in161
2 files changed, 43 insertions, 135 deletions
diff --git a/newlib/libm/mathfp/Makefile.am b/newlib/libm/mathfp/Makefile.am
index 0caab07a4..db83ea082 100644
--- a/newlib/libm/mathfp/Makefile.am
+++ b/newlib/libm/mathfp/Makefile.am
@@ -58,7 +58,7 @@ endif # USE_LIBTOOL
include $(srcdir)/../../Makefile.shared
-chobj = e_acosh.def \
+CHEWOUT_FILES = e_acosh.def \
e_atanh.def \
e_hypot.def \
e_remainder.def \
@@ -87,20 +87,7 @@ chobj = e_acosh.def \
s_tanh.def \
w_jn.def
-SUFFIXES = .def
-
-CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
-
-.c.def:
- $(CHEW) < $< > $*.def 2> $*.ref
- touch stmp-def
-
-TARGETDOC = ../tmp.texi
-
-doc: $(chobj)
- cat $(srcdir)/mathfp.tex >> $(TARGETDOC)
-
-CLEANFILES = $(chobj) *.ref
+CHAPTERS = mathfp.tex
# A partial dependency list.
diff --git a/newlib/libm/mathfp/Makefile.in b/newlib/libm/mathfp/Makefile.in
index 57a24fa1a..a39bec5e9 100644
--- a/newlib/libm/mathfp/Makefile.in
+++ b/newlib/libm/mathfp/Makefile.in
@@ -348,39 +348,43 @@ libmathfp_la_LDFLAGS = -Xcompiler -nostdlib
@USE_LIBTOOL_FALSE@noinst_LIBRARIES = lib.a
@USE_LIBTOOL_FALSE@lib_a_SOURCES = $(src) $(fsrc)
@USE_LIBTOOL_FALSE@lib_a_CFLAGS = $(AM_CFLAGS)
-chobj = eacosh.def \
- eatanh.def \
- ehypot.def \
- eremainder.def \
- erlgamma.def \
- sacos.def \
- sasine.def \
- sasinh.def \
- satan.def \
- satan2.def \
- satangent.def \
- scosh.def \
- serf.def \
- sexp.def \
- sfabs.def \
- sfloor.def \
- sfmod.def \
- sfrexp.def \
- sldexp.def \
- slog10.def \
- slogarithm.def \
- spow.def \
- ssine.def \
- ssineh.def \
- ssqrt.def \
- stan.def \
- stanh.def \
- wjn.def
+#
+# documentation rules
+#
SUFFIXES = .def
-CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
-TARGETDOC = ../tmp.texi
-CLEANFILES = $(chobj) *.ref
+CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str
+CLEANFILES = $(CHEWOUT_FILES) *.ref
+CHEWOUT_FILES = e_acosh.def \
+ e_atanh.def \
+ e_hypot.def \
+ e_remainder.def \
+ er_lgamma.def \
+ s_acos.def \
+ s_asine.def \
+ s_asinh.def \
+ s_atan.def \
+ s_atan2.def \
+ s_atangent.def \
+ s_cosh.def \
+ s_erf.def \
+ s_exp.def \
+ s_fabs.def \
+ s_floor.def \
+ s_fmod.def \
+ s_frexp.def \
+ s_ldexp.def \
+ s_log10.def \
+ s_logarithm.def \
+ s_pow.def \
+ s_sine.def \
+ s_sineh.def \
+ s_sqrt.def \
+ s_tan.def \
+ s_tanh.def \
+ w_jn.def
+
+CHAPTERS = mathfp.tex
all: all-am
.SUFFIXES:
@@ -1196,96 +1200,13 @@ objectlist.awk.in: $(noinst_LTLIBRARIES)
$(CHEW) < $< > $*.def 2> $*.ref
touch stmp-def
-doc: $(chobj)
- cat $(srcdir)/mathfp.tex >> $(TARGETDOC)
+TARGETDOC ?= ../tmp.texi
-# Texinfo does not appear to support underscores in file names, so we
-# name the .def files without underscores.
-
-eacosh.def: e_acosh.c
- $(CHEW) < $(srcdir)/e_acosh.c >$@ 2>/dev/null
- touch stmp-def
-eatanh.def: e_atanh.c
- $(CHEW) < $(srcdir)/e_atanh.c >$@ 2>/dev/null
- touch stmp-def
-ehypot.def: e_hypot.c
- $(CHEW) < $(srcdir)/e_hypot.c >$@ 2>/dev/null
- touch stmp-def
-eremainder.def: e_remainder.c
- $(CHEW) < $(srcdir)/e_remainder.c >$@ 2>/dev/null
- touch stmp-def
-erlgamma.def: er_lgamma.c
- $(CHEW) < $(srcdir)/er_lgamma.c >$@ 2>/dev/null
- touch stmp-def
-sacos.def: s_acos.c
- $(CHEW) < $(srcdir)/s_acos.c >$@ 2>/dev/null
- touch stmp-def
-sasine.def: s_asine.c
- $(CHEW) < $(srcdir)/s_asine.c >$@ 2>/dev/null
- touch stmp-def
-sasinh.def: s_asinh.c
- $(CHEW) < $(srcdir)/s_asinh.c >$@ 2>/dev/null
- touch stmp-def
-satan.def: s_atan.c
- $(CHEW) < $(srcdir)/s_atan.c >$@ 2>/dev/null
- touch stmp-def
-satan2.def: s_atan2.c
- $(CHEW) < $(srcdir)/s_atan2.c >$@ 2>/dev/null
- touch stmp-def
-satangent.def: s_atangent.c
- $(CHEW) < $(srcdir)/s_atangent.c >$@ 2>/dev/null
- touch stmp-def
-scosh.def: s_cosh.c
- $(CHEW) < $(srcdir)/s_cosh.c >$@ 2>/dev/null
- touch stmp-def
-serf.def: s_erf.c
- $(CHEW) < $(srcdir)/s_erf.c >$@ 2>/dev/null
- touch stmp-def
-sexp.def: s_exp.c
- $(CHEW) < $(srcdir)/s_exp.c >$@ 2>/dev/null
- touch stmp-def
-sfabs.def: s_fabs.c
- $(CHEW) < $(srcdir)/s_fabs.c >$@ 2>/dev/null
- touch stmp-def
-sfloor.def: s_floor.c
- $(CHEW) < $(srcdir)/s_floor.c >$@ 2>/dev/null
- touch stmp-def
-sfmod.def: s_fmod.c
- $(CHEW) < $(srcdir)/s_fmod.c >$@ 2>/dev/null
- touch stmp-def
-sfrexp.def: s_frexp.c
- $(CHEW) < $(srcdir)/s_frexp.c >$@ 2>/dev/null
- touch stmp-def
-sldexp.def: s_ldexp.c
- $(CHEW) < $(srcdir)/s_ldexp.c >$@ 2>/dev/null
- touch stmp-def
-slog10.def: s_log10.c
- $(CHEW) < $(srcdir)/s_log10.c >$@ 2>/dev/null
- touch stmp-def
-slogarithm.def: s_logarithm.c
- $(CHEW) < $(srcdir)/s_logarithm.c >$@ 2>/dev/null
- touch stmp-def
-spow.def: s_pow.c
- $(CHEW) < $(srcdir)/s_pow.c >$@ 2>/dev/null
- touch stmp-def
-ssine.def: s_sine.c
- $(CHEW) < $(srcdir)/s_sine.c >$@ 2>/dev/null
- touch stmp-def
-ssineh.def: s_sineh.c
- $(CHEW) < $(srcdir)/s_sineh.c >$@ 2>/dev/null
- touch stmp-def
-ssqrt.def: s_sqrt.c
- $(CHEW) < $(srcdir)/s_sqrt.c >$@ 2>/dev/null
- touch stmp-def
-stan.def: s_tan.c
- $(CHEW) < $(srcdir)/s_tan.c >$@ 2>/dev/null
- touch stmp-def
-stanh.def: s_tanh.c
- $(CHEW) < $(srcdir)/s_tanh.c >$@ 2>/dev/null
- touch stmp-def
-wjn.def: w_jn.c
- $(CHEW) < $(srcdir)/w_jn.c >$@ 2>/dev/null
- touch stmp-def
+doc: $(CHEWOUT_FILES)
+ for chapter in $(CHAPTERS) ; \
+ do \
+ cat $(srcdir)/$$chapter >> $(TARGETDOC) ; \
+ done
# A partial dependency list.