From: Simon Josefsson Date: Mon, 7 Apr 2025 06:56:09 +0000 (+0200) Subject: maintainer-makefile: Avoid submodule-checks fail without submodules. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ba4e57eea99f57370842f8a1dd31ced242ba5598;p=gnulib.git maintainer-makefile: Avoid submodule-checks fail without submodules. * top/maint.mk (no-submodule-changes): Condition on .gitmodules. (public-submodule-commit): Likewise. --- diff --git a/ChangeLog b/ChangeLog index b24c4d104b..05c48f05da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-04-07 Simon Josefsson + + maintainer-makefile: Avoid submodule-checks fail without submodules. + * top/maint.mk (no-submodule-changes): Condition on .gitmodules. + (public-submodule-commit): Likewise. + 2025-04-06 Collin Funk fseterr: Port to recent Haiku snapshots. diff --git a/top/maint.mk b/top/maint.mk index 00775f786f..54c5e82753 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -1625,6 +1625,7 @@ endef .PHONY: no-submodule-changes no-submodule-changes: $(AM_V_GEN)if test -d $(srcdir)/.git \ + && test -e $(srcdir)/.gitmodules \ && git --version >/dev/null 2>&1; then \ diff=$$(cd $(srcdir) && git submodule -q foreach \ git diff-index --name-only HEAD) \ @@ -1644,6 +1645,7 @@ submodule-checks ?= no-submodule-changes public-submodule-commit .PHONY: public-submodule-commit public-submodule-commit: $(AM_V_GEN)if test -d $(srcdir)/.git \ + && test -e $(srcdir)/.gitmodules \ && git --version >/dev/null 2>&1; then \ cd $(srcdir) && \ git submodule --quiet foreach \