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 <mha1993@live.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jul 4, 2021 at 22:55 UTC 434882405931bf240d9ad0c08549d651fbf7daf0
1 file changed +4 -1
Makefile
+4 -1
@@ -2675,10 +2675,13 @@ po/git.pot: $(GENERATED_H) FORCE
2675 .PHONY: pot
2676 pot: po/git.pot
2677
2678 +ifdef NO_GETTEXT
2679 +POFILES :=
2680 +MOFILES :=
2681 +else
2682 POFILES := $(wildcard po/*.po)
2683 MOFILES := $(patsubst po/%.po,po/build/locale/%/LC_MESSAGES/git.mo,$(POFILES))
2684
2681 -ifndef NO_GETTEXT
2685 all:: $(MOFILES)
2686 endif
2687