summaryrefslogtreecommitdiffstats
path: root/newlib/libc/time/Makefile.in
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2015-11-02 18:00:28 -0500
committerJeff Johnston <jjohnstn@redhat.com>2015-11-02 18:02:39 -0500
commit06312793945e184036b9491767b9eacac9be3890 (patch)
treeb8e4fbafe646bf9b186d1b93ff56d0f7c7794658 /newlib/libc/time/Makefile.in
parent53617ce4e634bd6f67e6e08939518dba77dee3f1 (diff)
downloadcygnal-06312793945e184036b9491767b9eacac9be3890.tar.gz
cygnal-06312793945e184036b9491767b9eacac9be3890.tar.bz2
cygnal-06312793945e184036b9491767b9eacac9be3890.zip
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/libc/time/Makefile.in')
-rw-r--r--newlib/libc/time/Makefile.in27
1 files changed, 18 insertions, 9 deletions
diff --git a/newlib/libc/time/Makefile.in b/newlib/libc/time/Makefile.in
index 48ba064ca..2bcc9eeab 100644
--- a/newlib/libc/time/Makefile.in
+++ b/newlib/libc/time/Makefile.in
@@ -297,6 +297,13 @@ libtime_la_LDFLAGS = -Xcompiler -nostdlib
@USE_LIBTOOL_FALSE@noinst_LIBRARIES = lib.a
@USE_LIBTOOL_FALSE@lib_a_SOURCES = $(LIB_SOURCES)
@USE_LIBTOOL_FALSE@lib_a_CFLAGS = $(AM_CFLAGS)
+
+#
+# documentation rules
+#
+SUFFIXES = .def
+CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str
+CLEANFILES = $(CHEWOUT_FILES) *.ref
CHEWOUT_FILES = \
asctime.def \
clock.def \
@@ -311,10 +318,7 @@ CHEWOUT_FILES = \
tzset.def \
wcsftime.def
-SUFFIXES = .def
-CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
-TARGETDOC = ../tmp.texi
-CLEANFILES = $(CHEWOUT_FILES) *.ref
+CHAPTERS = time.tex
all: all-am
.SUFFIXES:
@@ -700,16 +704,21 @@ objectlist.awk.in: $(noinst_LTLIBRARIES)
echo $$i `pwd`/$$i >> objectlist.awk.in ; \
done
-# This rule is needed so that wcsftime.o is rebuilt when strftime.c changes.
-
-$(lpfx)wcsftime.$(oext): strftime.c
-
.c.def:
$(CHEW) < $< > $*.def 2> $*.ref
touch stmp-def
+TARGETDOC ?= ../tmp.texi
+
doc: $(CHEWOUT_FILES)
- cat $(srcdir)/time.tex >> $(TARGETDOC)
+ for chapter in $(CHAPTERS) ; \
+ do \
+ cat $(srcdir)/$$chapter >> $(TARGETDOC) ; \
+ done
+
+# This rule is needed so that wcsftime.o is rebuilt when strftime.c changes.
+
+$(lpfx)wcsftime.$(oext): strftime.c
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.