Re: [PATCH 1/7] newlib: libm: merge machine/ trampoline up a level

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YfIHiBTH4hJJf9v/@vapier>
On 26 Jan 2022 15:58, Jon Turney wrote:
> On 23/01/2022 06:04, Mike Frysinger wrote:
> > The machine/{configure,Makefile} files exist only to fan out to the
> > specific machine/$arch/ subdir.  We already have all that same info
> > in the libm/ dir itself, so by moving the recursive configure and
> > make calls into it, we can cut off this logic entirely and save the
> > overhead.
> > 
> > For arches that don't have a machine subdir, it means they can skip
> > the logic entirely.
> 
> It looks like this (and the following commint) breaks 'man info' and 
> 'make man'?
> 
> 
> (e.g. https://github.com/cygwin/cygwin/runs/4949106511)

blah, sorry about that.  i have another series pending related to man page
unification that i've been testing with and doesn't have this issue.  but
that's still under review, so i pushed this quick hack fix since my series
deletes this entire chunk of code.
-mike

--- a/newlib/libc/Makefile.am
+++ b/newlib/libc/Makefile.am
@@ -199,7 +199,7 @@ stmp-targetdep: force
 	rm -f tmp-targetdep.texi
 	targetdoc=`pwd`/tmp-targetdep.texi; \
 	for d in $(SUBDIRS); do \
-	  if test "$$d" != "."; then \
+	  if test "$$d" != "." && test "$$d" != "$(LIBC_MACHINE_DIR)"; then \
 	    (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
 	  fi; \
 	done
@@ -218,7 +218,7 @@ libc_TEXINFOS = sigset.texi posix.texi stdio64.texi iconvset.texi \
 
 docbook-recursive: force
 	for d in $(SUBDIRS); do \
-	  if test "$$d" != "."; then \
+	  if test "$$d" != "." && test "$$d" != "$(LIBC_MACHINE_DIR)"; then \
 	    (cd $$d && $(MAKE) docbook) || exit 1; \
 	  fi; \
 	done
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmHyB4gACgkQQWM7n+g3
9YE0ow//VARCBJmBOeTYx2AgIuwUkLMNzxSj7CvdiBrgiaAqZNb7Gp8+4lXwyASv
0YN2WgT12t2Kabdqg7WMu4ilPg7oLdaNZxFr6uWc4UUQWySRwInK741jjqo8gTKI
qlCdXamwlSdUVEIA1zNm4Uwa8OSgdHQSk1dOQYOMWrDMI4wyc+mUrS6T4wDdhvQH
LN95YHdRdm6fRpht9LbCg2B2Q7b0nv1PzGEY2lZ5xErDoggb6/RsKROfF0p5ItkK
SU5wj8KFZtuCyjVj7dmps6KhNUVEWbEedLxjOQXOcsG1rDe5Yq1DnXShaPWq9D61
SJRC3S6J+lctMfH3qvPHOtjKMddsvF+3gCN2vuQ2Bx4hX3/1fJKUrk2c0O2NHsef
3cVRNuR+n/BCc/CCdvuGqGbYtvbjq6/kONFl5Q5tAlx/mhFNTD4ZQdUQtqA2T2Ej
17Rq9u2fydRbnQ806WMMu60IExWw7aTo2t/BL0KxjomM0gdTB8Om8Rbtfoiahsjs
J79ggf0idfwo92+L++4R3kF4fjiyi06J63+gNBHDlS0nggR9HFA5hbmQE7QtVkNr
DSjLXDK3BLi6lOM//LFev6RNp6cq7NMGt5GCKaDBs/Jlbvl3/UKCfT1fugHtBOji
JQHsj9R7Mrl9Fhhj0ceF2l1h31tVTCSXzV4PjsbF1hdUTuzT6ZU=
=4Llf
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.