]> Savannah Git Hosting - gnulib.git/commitdiff
maint: Avoid syntax-check failure for empty gnulib submodule.
authorSimon Josefsson <simon@josefsson.org>
Mon, 20 Sep 2021 07:40:47 +0000 (09:40 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 20 Sep 2021 07:40:47 +0000 (09:40 +0200)
* top/maint.mk (gnulib_dir): Fall back to GNULIB_SRCDIR if
submodule is not checked out.

ChangeLog
top/maint.mk

index ddc28ddc239b062ad1e77ee4800df89a920151e8..6d5ba0854168f5ddadd8325951c5473bce9fa072 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-09-20  Simon Josefsson  <simon@josefsson.org>
+
+       maint: Avoid syntax-check failure for empty gnulib submodule.
+       * top/maint.mk (gnulib_dir): Fall back to GNULIB_SRCDIR if
+       submodule is not checked out.
+
 2021-09-19  Bruno Haible  <bruno@clisp.org>
 
        Relicense qemu.h under LGPLv2+.
index 0aa63773cf54f63080ad1a0a01f847138329f451..a03bc2e21e94e63c8727ff1324669d28867df877 100644 (file)
@@ -64,7 +64,7 @@ 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 -d $(srcdir)/gnulib; then \
+gnulib_dir ?= $(shell if test -f $(srcdir)/gnulib/gnulib-tool; then \
                        echo $(srcdir)/gnulib; \
                else \
                        echo ${GNULIB_SRCDIR}; \