From: Johannes Schindelin Date: Sun, 4 Jul 2021 22:55:12 +0000 (+0000) Subject: artifacts-tar: respect NO_GETTEXT X-Git-Tag: v2.33.0-rc0~32^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=434882405931bf240d9ad0c08549d651fbf7daf0;p=thirdparty%2Fgit.git artifacts-tar: respect NO_GETTEXT We obviously do not want to bundle `.mo` files during `make artifacts-tar NO_GETTEXT=Yep`, but that was the case. To fix that, go a step beyond just fixing the symptom, and simply define the lists of `.po` and `.mo` files as empty if `NO_GETTEXT` is set. Helped-by: Matthias Aßhauer Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index c3565fc0f8..04e852be01 100644 --- a/Makefile +++ b/Makefile @@ -2675,10 +2675,13 @@ po/git.pot: $(GENERATED_H) FORCE .PHONY: pot pot: po/git.pot +ifdef NO_GETTEXT +POFILES := +MOFILES := +else POFILES := $(wildcard po/*.po) MOFILES := $(patsubst po/%.po,po/build/locale/%/LC_MESSAGES/git.mo,$(POFILES)) -ifndef NO_GETTEXT all:: $(MOFILES) endif