]> Savannah Git Hosting - gnulib.git/commitdiff
maintainer-makefile: Determine gnulib's location on disk correctly.
authorBruno Haible <bruno@clisp.org>
Mon, 30 Jan 2023 01:45:23 +0000 (02:45 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Feb 2023 02:27:46 +0000 (03:27 +0100)
* top/maint.mk (gnulib_dir): Give priority to $(GNULIB_SRCDIR) over
$(srcdir)/gnulib.

ChangeLog
top/maint.mk

index 6a7de98c0f9b67b17c84dc7224ef9ca4e8b359a3..f209619fd793f5afc0856749108026b24acec9e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-29  Bruno Haible  <bruno@clisp.org>
+
+       maintainer-makefile: Determine gnulib's location on disk correctly.
+       * top/maint.mk (gnulib_dir): Give priority to $(GNULIB_SRCDIR) over
+       $(srcdir)/gnulib.
+
 2023-01-29  Bruno Haible  <bruno@clisp.org>
 
        Fix compilation errors with CC="clang -D_FORTIFY_SOURCE=2" on Android.
index 034e25be3dcbe9072daa5fea17d9a6d30cea25af..44f3db9d9d786535e3b04fa81f810a6095929828 100644 (file)
@@ -64,10 +64,10 @@ VC_LIST = $(srcdir)/$(_build-aux)/vc-list-files -C $(srcdir)
 
 # You can override this variable in cfg.mk if your gnulib submodule lives
 # in a different location.
-gnulib_dir ?= $(shell if test -f $(srcdir)/gnulib/gnulib-tool; then \
-                       echo $(srcdir)/gnulib; \
+gnulib_dir ?= $(shell if test -n "$(GNULIB_SRCDIR)" && test -f "$(GNULIB_SRCDIR)/gnulib-tool"; then \
+                       echo "$(GNULIB_SRCDIR)"; \
                else \
-                       echo ${GNULIB_SRCDIR}; \
+                       echo $(srcdir)/gnulib; \
                fi)
 
 # You can override this variable in cfg.mk to set your own regexp