summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-18 19:35:50 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-18 19:35:50 +1100
commitf7a8ad4fc7d36a05ca3470c2945942f3dba9ef41 (patch)
treebe92ee36d7b61e84a2cd10531b8182429f290810 /makefile
parentefe9c1e7283e6a0ca5f4fc57a832430e656399ef (diff)
Revert "Better rules for generating .po files - multiple jobs have an effect now."
Need to find a better way of doing this without causing .po files to be rebuilt on every build. The commit is still there for reference. This reverts commit efe9c1e7283e6a0ca5f4fc57a832430e656399ef.
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/makefile b/makefile
index 7dc9c5ca068..b2ebebe3ac7 100644
--- a/makefile
+++ b/makefile
@@ -1938,9 +1938,6 @@ $(GENDIR)/mame.pot: FORCE
$(SILENT) find plugins -name "*.lua" -print0 | xargs -0 \
xgettext -o $@ --from-code=UTF-8 --language=Lua -k_:1 -k_p:1c,2 -kN_ -kN_p:1c,2 -j
-%.po: $(GENDIR)/mame.pot
- $(SILENT) echo Updating $@
- $(SILENT) msgmerge $(if $(SILENT),-q,) -U -N $@ $<
- $(SILENT) msgattrib --clear-fuzzy --empty $@ -o $@
-
-translation: $(wildcard language/*/*.po)
+translation: $(GENDIR)/mame.pot
+ $(SILENT) find language -name "*.po" -print0 | xargs -0 -n 1 -I %% msgmerge -U -N %% $<
+ $(SILENT) find language -name "*.po" -print0 | xargs -0 -n 1 -I %% msgattrib --clear-fuzzy --empty %% -o %%