]> Savannah Git Hosting - gnulib.git/commitdiff
maintainer-makefile: Mimic bootstrap's gnulib-srcdir guessing.
authorSimon Josefsson <simon@josefsson.org>
Tue, 26 Jan 2021 15:24:54 +0000 (16:24 +0100)
committerSimon Josefsson <simon@josefsson.org>
Tue, 26 Jan 2021 15:24:54 +0000 (16:24 +0100)
* top/maint.mk (gnulib_dir): If $(srcdir)/gnulib doesn't exist,
fall back to $GNULIB_SRCDIR.

ChangeLog
top/maint.mk

index c2bfead08c720c1929854c340dce88fa780ccd23..a06ac071b8936cf49c01eab0cd85f0651de56c85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-26  Simon Josefsson  <simon@josefsson.org>
+
+       maintainer-makefile: Mimic bootstrap's gnulib-srcdir guessing.
+       * top/maint.mk (gnulib_dir): If $(srcdir)/gnulib doesn't exist,
+       fall back to $GNULIB_SRCDIR.
+
 2021-01-25  Bruno Haible  <bruno@clisp.org>
 
        posix_spawn_file_actions_* tests: Fix module dependencies.
index 934f23d56b487a17d2410071c12560dd6672c1ec..ae3a8170a8bbd58853e44d8a07b000c8c07bf6df 100644 (file)
@@ -64,7 +64,11 @@ 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 ?= $(srcdir)/gnulib
+gnulib_dir ?= $(shell if test -d $(srcdir)/gnulib; then \
+                       echo $(srcdir)/gnulib; \
+               else \
+                       echo ${GNULIB_SRCDIR}; \
+               fi)
 
 # You can override this variable in cfg.mk to set your own regexp
 # matching files to ignore.