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:
authorMike Frysinger <vapier@gentoo.org>2021-11-11 05:04:31 +0300
committerMike Frysinger <vapier@gentoo.org>2021-11-16 03:35:04 +0300
commit67208d9ef8bc33c4d48ce4466884ce3a93da9bb9 (patch)
treee7863587ea389266dd14f8a93b28d9287d16efc0 /newlib/Makefile.am
parent6226bad0eafe762b811c62d1dc096bc0858b0d1a (diff)
newlib: merge doc into top-level Makefile
Avoid a recursive make with this tiny subdir to speed things up a bit.
Diffstat (limited to 'newlib/Makefile.am')
-rw-r--r--newlib/Makefile.am29
1 files changed, 15 insertions, 14 deletions
diff --git a/newlib/Makefile.am b/newlib/Makefile.am
index 3a8b99fce..1ab75f995 100644
--- a/newlib/Makefile.am
+++ b/newlib/Makefile.am
@@ -1,8 +1,12 @@
## Process this file with automake to generate Makefile.in
-AUTOMAKE_OPTIONS = cygnus dejagnu
+AUTOMAKE_OPTIONS = cygnus dejagnu subdir-objects
ACLOCAL_AMFLAGS = -I . -I ..
+# Variables that will accumulate in subdirs.
+PHONY =
+noinst_DATA =
+
# Multilib support variables.
MULTISRCTOP =
MULTIBUILDTOP =
@@ -63,21 +67,15 @@ AM_MAKEFLAGS = \
FLAGS_TO_PASS=$(AM_MAKEFLAGS)
-if HAVE_DOC
-DOCDIR = doc
-else
-DOCDIR =
-endif
-
SUBDIRS = libc libm \
- $(DOCDIR) . $(EXTRA_DIRS)
+ . $(EXTRA_DIRS)
tooldir = $(exec_prefix)/$(host_alias)
toollibdir = $(tooldir)/lib$(MULTISUBDIR)
AR_FLAGS = rc
-noinst_DATA = stmp-targ-include
+noinst_DATA += stmp-targ-include
if USE_LIBTOOL
toollib_LTLIBRARIES = libm.la \
@@ -424,10 +422,7 @@ unidata:
cd $(srcdir)/libc/ctype; ./mkunidata -u
# Force makedoc to be built before building info files.
-info-recursive: doc/makedoc
-dvi-recursive: doc/makedoc
-doc/makedoc:
- cd doc && $(MAKE) all
+info-recursive dvi-recursive: doc/makedoc$(EXEEXT_FOR_BUILD)
# Recursive targets for man and install-man
man:
@@ -448,7 +443,7 @@ install-man:
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
# Multilib support.
-.PHONY: all-multi check-multi mostlyclean-multi clean-multi distclean-multi \
+PHONY += all-multi check-multi mostlyclean-multi clean-multi distclean-multi \
maintainer-clean-multi
all-recursive: all-multi
@@ -540,3 +535,9 @@ check-DEJAGNU: site.exp
clean-local:
-rm -rf targ-include newlib.h _newlib_version.h stamp-*
+
+if HAVE_DOC
+include doc/local.mk
+endif
+
+.PHONY: $(PHONY)