Skip to content

Commit c31d2e7

Browse files
committed
artifacts-tar: respect NO_GETTEXT
We obviously do not want to bundle `.mo` files during `make artifacts-tar NO_GETTEXT`, 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 <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 59dc444 commit c31d2e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2675,10 +2675,13 @@ po/git.pot: $(GENERATED_H) FORCE
26752675
.PHONY: pot
26762676
pot: po/git.pot
26772677

2678+
ifdef NO_GETTEXT
2679+
POFILES :=
2680+
MOFILES :=
2681+
else
26782682
POFILES := $(wildcard po/*.po)
26792683
MOFILES := $(patsubst po/%.po,po/build/locale/%/LC_MESSAGES/git.mo,$(POFILES))
26802684

2681-
ifndef NO_GETTEXT
26822685
all:: $(MOFILES)
26832686
endif
26842687

0 commit comments

Comments
 (0)