]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Makeconfig: Use $(error ...) to output error message
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 29 Apr 2020 09:24:41 +0000 (11:24 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 29 Apr 2020 09:24:41 +0000 (11:24 +0200)
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

index ac567caddc10cfbc53006730244790784bce8a7c..dfda418aaccb16fae379a4d6aab5b27849d176d3 100644 (file)
@@ -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.