]> git.ipfire.org Git - thirdparty/git.git/commitdiff
artifacts-tar: respect NO_GETTEXT
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 4 Jul 2021 22:55:12 +0000 (22:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Jul 2021 19:20:58 +0000 (12:20 -0700)
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>
Makefile

index c3565fc0f8f7df81232deca663bf55e14737ae97..04e852be015d81db7bb3f119bd6e6548238a4b7a 100644 (file)
--- 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