summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-04-29 11:24:41 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-04-29 11:24:41 +0200
commit9207e30d3f070712df6c4175547094be112454d2 (patch)
tree659b797e5fac0057b3bd8e7bc90ecd5f9a0b329a /Makeconfig
parent2a8682ea3bf0f366a2d971ba6abdda4b2f7c3587 (diff)
downloadglibc-9207e30d3f070712df6c4175547094be112454d2.tar.gz
glibc-9207e30d3f070712df6c4175547094be112454d2.tar.xz
glibc-9207e30d3f070712df6c4175547094be112454d2.zip
Makeconfig: Use $(error ...) to output error message
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.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index ac567caddc..dfda418aac 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.