public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Makeconfig: Use $(error ...) to output error message
@ 2020-04-28 22:20 Simon Marchi
  2020-04-28 23:33 ` Joseph Myers
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Marchi @ 2020-04-28 22:20 UTC (permalink / raw)
  To: libc-alpha; +Cc: Simon Marchi

Being not familiar with the glibc repository, I typed "make" inside some
subdirectory that has a Makefile, and was met with:

    $ make
    ../Makeconfig:42: *** missing separator.  Stop.

At Makeconfig:42, we have:

    objdir must be defined by the build-directory Makefile.

Change that to use $(error ...), which I guess was the original
intention.  The result is:

    $ make
    ../Makeconfig:42: *** objdir must be defined by the build-directory Makefile.  Stop.
---
 Makeconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makeconfig b/Makeconfig
index ac567caddc10..dfda418aaccb 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -39,7 +39,7 @@ objpfx := $(patsubst %//,%/,$(objdir)/$(subdir)/)
 common-objpfx = $(objdir)/
 common-objdir = $(objdir)
 else
-objdir must be defined by the build-directory Makefile.
+$(error objdir must be defined by the build-directory Makefile)
 endif
 
 # Root of the sysdeps tree.
-- 
2.26.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-01 16:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-28 22:20 [PATCH] Makeconfig: Use $(error ...) to output error message Simon Marchi
2020-04-28 23:33 ` Joseph Myers
2020-04-28 23:48   ` Simon Marchi
2020-04-29  9:25     ` Florian Weimer
2020-04-29 13:51       ` Simon Marchi
2020-04-30 22:31     ` Maciej W. Rozycki
2020-05-01  0:22       ` Simon Marchi
2020-05-01 16:20       ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).